24 lines
848 B
Plaintext
24 lines
848 B
Plaintext
|
module completions {
|
||
|
|
||
|
def "nu-complete rm interactive" [] {
|
||
|
[ "never" "once" "always" ]
|
||
|
}
|
||
|
|
||
|
# remove files or directories
|
||
|
export extern rm [
|
||
|
-i # prompt before every removal
|
||
|
-I # prompt once before removing more than three files, or when removing recursively;
|
||
|
less intrusive than -i, while still giving protection against most mistakes
|
||
|
--interactive: string@"nu-complete rm interactive" # when to prompt
|
||
|
--force(-f) # ignore nonexistent files and arguments, never prompt
|
||
|
--recursive(-R) # operate on files and directories recursively
|
||
|
--verbose(-v) # output a diagnostic for every file processed
|
||
|
...file: string
|
||
|
--help(-h) # Print help
|
||
|
--version(-V) # Print version
|
||
|
]
|
||
|
|
||
|
}
|
||
|
|
||
|
use completions *
|