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

78 lines
2 KiB
Text

module completions {
export extern my-app [
--single-quotes # Can be 'always', 'auto', or 'never'
--double-quotes # Can be "always", "auto", or "never"
--backticks # For more information see `echo test`
--backslash # Avoid '\n'
--brackets # List packages [filter]
--expansions # Execute the shell command with $SHELL
--help(-h) # Print help
--version(-V) # Print version
]
# Can be 'always', 'auto', or 'never'
export extern "my-app cmd-single-quotes" [
--help(-h) # Print help
]
# Can be "always", "auto", or "never"
export extern "my-app cmd-double-quotes" [
--help(-h) # Print help
]
# For more information see `echo test`
export extern "my-app cmd-backticks" [
--help(-h) # Print help
]
# Avoid '\n'
export extern "my-app cmd-backslash" [
--help(-h) # Print help
]
# List packages [filter]
export extern "my-app cmd-brackets" [
--help(-h) # Print help
]
# Execute the shell command with $SHELL
export extern "my-app cmd-expansions" [
--help(-h) # Print help
]
# Print this message or the help of the given subcommand(s)
export extern "my-app help" [
]
# Can be 'always', 'auto', or 'never'
export extern "my-app help cmd-single-quotes" [
]
# Can be "always", "auto", or "never"
export extern "my-app help cmd-double-quotes" [
]
# For more information see `echo test`
export extern "my-app help cmd-backticks" [
]
# Avoid '\n'
export extern "my-app help cmd-backslash" [
]
# List packages [filter]
export extern "my-app help cmd-brackets" [
]
# Execute the shell command with $SHELL
export extern "my-app help cmd-expansions" [
]
# Print this message or the help of the given subcommand(s)
export extern "my-app help help" [
]
}
export use completions *