2022-10-31 12:11:01 +00:00
|
|
|
module completions {
|
|
|
|
|
2022-11-01 04:03:16 +00:00
|
|
|
def "nu-complete my-app choice" [] {
|
2022-10-31 12:11:01 +00:00
|
|
|
[ "bash" "fish" "zsh" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
export extern my-app [
|
2022-11-01 04:03:16 +00:00
|
|
|
--choice: string@"nu-complete my-app choice"
|
2022-10-31 12:11:01 +00:00
|
|
|
--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
|
2023-05-23 13:50:43 +00:00
|
|
|
--help(-h) # Print help
|
2022-10-31 12:11:01 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-09-11 09:40:59 +00:00
|
|
|
export use completions *
|