mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
pabcnetcclear command completion update (#8480)
* Rename pabcnetcclear complete * Code clean-up * Debug values support * Change /Debug description * Standardize help * Use single quotes for --arguments
This commit is contained in:
parent
d1683958cf
commit
d7c62fa7d1
2 changed files with 17 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
complete -f -c pabcnet_clear -a '/Help\t"Display help" /H\t"Display help" /\?\t"Display help" /Debug\t"Generate code with optimizations" /output\t"Executable name" /SearchDir\t"Add path to unit search directories"'
|
17
share/completions/pabcnetcclear.fish
Normal file
17
share/completions/pabcnetcclear.fish
Normal file
|
@ -0,0 +1,17 @@
|
|||
function __pabcnetcclear_generate_args --description 'Function to generate args'
|
||||
set --local current_token (commandline --current-token --cut-at-cursor)
|
||||
switch $current_token
|
||||
case '/Debug:*'
|
||||
echo -e $current_token"0\tEnable generation
|
||||
$current_token"1"\tDisable generation"
|
||||
case '*'
|
||||
echo -e "/Help\tShow help
|
||||
/H\tShow help
|
||||
/?\tShow help
|
||||
/Debug\tGenerate a code debug info
|
||||
/output\tSpecify an executable name
|
||||
/SearchDir\tSpecify a path to search units"
|
||||
end
|
||||
end
|
||||
|
||||
complete --command pabcnetcclear --no-files --arguments '(__pabcnetcclear_generate_args)'
|
Loading…
Reference in a new issue