-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-more-parser-errors
- Loading branch information
Showing
13 changed files
with
373 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
pull_request: | ||
|
||
env: | ||
NUSHELL_CARGO_PROFILE: ci | ||
NU_LOG_LEVEL: DEBUG | ||
|
||
jobs: | ||
nu-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Fetch main branch" | ||
run: | | ||
git fetch origin main --depth 1 | ||
- uses: hustcer/[email protected] | ||
with: | ||
version: "*" | ||
check-latest: true | ||
features: full # dataframe and extra included | ||
- name: toolkit check pr | ||
shell: nu {0} | ||
# nix STUB_IDE_CHECK when nushell/nushell#12208 fixed | ||
run: | | ||
use ${{ github.workspace }}/toolkit.nu * | ||
STUB_IDE_CHECK=true check pr --and-exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "30 0 * * *" # every day at 00:30 AM UTC | ||
|
||
env: | ||
NUSHELL_CARGO_PROFILE: ci | ||
NU_LOG_LEVEL: DEBUG | ||
|
||
jobs: | ||
nu-check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "Fetch main branch" | ||
run: | | ||
git fetch origin main --depth 1 | ||
- uses: hustcer/[email protected] | ||
with: | ||
version: "*" | ||
check-latest: true | ||
features: full # dataframe and extra included | ||
- name: toolkit check pr --full | ||
shell: nu {0} | ||
# nix STUB_IDE_CHECK when nushell/nushell#12208 fixed | ||
run: | | ||
use ${{ github.workspace }}/toolkit.nu * | ||
STUB_IDE_CHECK=true check pr --full --and-exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
|
||
# ignore the git mailmap file | ||
.mailmap | ||
|
||
check-files.nu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export alias ch = chezmoi | ||
export alias chad = chezmoi add | ||
export alias chap = chezmoi apply | ||
export alias chd = chezmoi diff | ||
export alias chda = chezmoi data | ||
export alias chs = chezmoi status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
export extern "flutter" [ | ||
command?: string@"nu-complete flutter commands" | ||
--help(-h) # Print this usage information. | ||
--verbose(-v) # Noisy logging, including all shell commands executed. | ||
--device-id(-d) # Target device id or name (prefixes allowed). | ||
--version # Reports the version of this tool. | ||
--enable-analytics # Enable telemetry reporting each time a flutter or dart command runs. | ||
--disable-analytics # Disable telemetry reporting each time a flutter or dart command runs, until it is re-enabled. | ||
--suppress-analytics # Suppress analytics reporting for the current CLI invocation. | ||
] | ||
|
||
def "nu-complete flutter commands" [] { | ||
^flutter --help | ||
| into string | ||
| str replace --regex --multiline '(Manage[\s\S]*(?=Flutter SDK))' '' | ||
| lines | ||
| filter { str starts-with " " } | ||
| each { str trim } | ||
| parse "{value} {description}" | ||
| str trim | ||
} | ||
|
||
export extern "flutter create" [ | ||
project: string # project to create | ||
] | ||
|
||
export extern "flutter pub" [ | ||
command?: string@"nu-complete pub commands" | ||
] | ||
|
||
def "nu-complete pub commands" [] { | ||
^flutter pub --help | ||
| into string | ||
| str replace --regex --multiline '(Commands[\s\S]*(?=Available subcommands))' '' | ||
| lines | ||
| filter { str starts-with " " } | ||
| each { str trim } | ||
| parse "{value} {description}" | ||
| str trim | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.