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

30 lines
506 B
Text

module completions {
export extern my-app [
-c
-v
--help(-h) # Print help
]
# Subcommand
export extern "my-app test" [
-d
-c
--help(-h) # Print help
]
# Print this message or the help of the given subcommand(s)
export extern "my-app help" [
]
# Subcommand
export extern "my-app help test" [
]
# Print this message or the help of the given subcommand(s)
export extern "my-app help help" [
]
}
export use completions *