clap/tests/snapshots/feature_sample.nu

26 lines
626 B
Text
Raw Normal View History

2022-10-22 15:27:04 +00:00
module completions {
def "nu-complete my-app choice" [] {
2022-10-31 12:11:01 +00:00
[ "first" "second" ]
}
2022-10-22 15:27:04 +00:00
# Tests completions
export extern my-app [
2022-11-02 10:40:20 +00:00
file?: string # some input file
--config(-c) # some config file
--conf # some config file
-C # some config file
choice?: string@"nu-complete my-app choice"
2022-11-02 10:40:20 +00:00
--version(-V) # Print version information
2022-10-22 15:27:04 +00:00
]
# tests things
export extern "my-app test" [
2022-11-02 10:40:20 +00:00
--case: string # the case to test
--version(-V) # Print version information
2022-10-22 15:27:04 +00:00
]
}
use completions *