mirror of
https://github.com/clap-rs/clap
synced 2024-12-16 07:42:32 +00:00
45a7c2e37e
The generated scripts can be used as script, module and overlay. * script `source completion_script.nu` * module `use completion_script.nu *` * overlay `overlay use completion_script.nu`
27 lines
536 B
Text
27 lines
536 B
Text
module completions {
|
|
|
|
def "nu-complete my-app choice" [] {
|
|
[ "bash" "fish" "zsh" ]
|
|
}
|
|
|
|
export extern my-app [
|
|
--choice: string@"nu-complete my-app choice"
|
|
--unknown: string
|
|
--other: string
|
|
--path(-p): string
|
|
--file(-f): string
|
|
--dir(-d): string
|
|
--exe(-e): string
|
|
--cmd-name: string
|
|
--cmd(-c): string
|
|
command_with_args?: string
|
|
--user(-u): string
|
|
--host(-H): string
|
|
--url: string
|
|
--email: string
|
|
--help(-h) # Print help
|
|
]
|
|
|
|
}
|
|
|
|
export use completions *
|