clap/clap_complete_nushell/tests/snapshots/value_hint.nu
nibon7 45a7c2e37e
feat(nu): Make the completion scripts more general
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`
2023-09-11 19:59:35 +08:00

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 *