mirror of
https://github.com/casey/just
synced 2024-10-01 13:43:41 +00:00
Add Nushell completion script (#1571)
This commit is contained in:
parent
41c52f9ade
commit
b068badfa1
|
@ -4,5 +4,8 @@ set -euxo pipefail
|
|||
|
||||
for script in completions/*; do
|
||||
shell=${script##*.}
|
||||
if [ $shell == nu ]; then
|
||||
continue
|
||||
fi
|
||||
cargo run -- --completions $shell > $script
|
||||
done
|
||||
|
|
8
completions/just.nu
Normal file
8
completions/just.nu
Normal file
|
@ -0,0 +1,8 @@
|
|||
def "nu-complete just" [] {
|
||||
(^just --dump --unstable --dump-format json | from json).recipes | transpose recipe data | flatten | where {|row| $row.private == false } | select recipe doc parameters | rename value description
|
||||
}
|
||||
|
||||
# Just: A Command Runner
|
||||
export extern "just" [
|
||||
...recipe: string@"nu-complete just", # Recipe(s) to run, may be with argument(s)
|
||||
]
|
Loading…
Reference in a new issue