1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

fix: just completions (#491)

This commit is contained in:
Amy 2023-05-14 18:38:47 +02:00 committed by GitHub
parent d2f424e605
commit 2c37b5f583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
export def "nu-complete just recipes" [] {
def "nu-complete just recipes" [] {
^just --unstable --unsorted --dump --dump-format json
| from json
| get recipes
@ -20,7 +20,7 @@ export def "nu-complete just recipes" [] {
}
}
export def "nu-complete just args" [context: string, offset: int] {
def "nu-complete just args" [context: string, offset: int] {
let r = ($context | split row ' ')
^just --unstable -u --dump --dump-format json
| from json
@ -32,7 +32,7 @@ export def "nu-complete just args" [context: string, offset: int] {
}
export def j [
export def just [
recipes?: string@"nu-complete just recipes"
...args: any@"nu-complete just args"
] {