clap/clap_complete_nushell/tests/snapshots/aliases.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

18 lines
477 B
Text

module completions {
# testing nushell completions
export extern my-app [
--flag(-f) # cmd flag
--flg # cmd flag
-F # cmd flag
--option(-o): string # cmd option
--opt: string # cmd option
-O: string # cmd option
positional?: string
--help(-h) # Print help
--version(-V) # Print version
]
}
export use completions *