Skip to content

Commit 066cc54

Browse files
committed
Update completion files
1 parent 9107041 commit 066cc54

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

exports/completion.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ _pdu() {
88

99
for i in ${COMP_WORDS[@]}
1010
do
11-
case "${i}" in
12-
"$1")
11+
case "${cmd},${i}" in
12+
",$1")
1313
cmd="pdu"
1414
;;
1515
*)
@@ -19,7 +19,7 @@ _pdu() {
1919

2020
case "${cmd}" in
2121
pdu)
22-
opts="-h -V --help --version --json-input --json-output --bytes-format --top-down --align-left --quantity --max-depth --total-width --column-width --min-ratio --no-sort --silent-errors --progress <FILES>..."
22+
opts="-h -V --json-input --json-output --bytes-format --top-down --align-left --quantity --max-depth --total-width --column-width --min-ratio --no-sort --silent-errors --progress --help --version [FILES]..."
2323
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
2424
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
2525
return 0

exports/completion.elv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ set edit:completion:arg-completer[pdu] = {|@words|
2424
cand --total-width 'Width of the visualization'
2525
cand --column-width 'Maximum widths of the tree column and width of the bar column'
2626
cand --min-ratio 'Minimal size proportion required to appear'
27-
cand -h 'Print help information'
28-
cand --help 'Print help information'
29-
cand -V 'Print version information'
30-
cand --version 'Print version information'
3127
cand --json-input 'Read JSON data from stdin'
3228
cand --json-output 'Print JSON data instead of an ASCII chart'
3329
cand --top-down 'Print the tree top-down instead of bottom-up'
3430
cand --align-left 'Fill the bars from left to right'
3531
cand --no-sort 'Preserve order of entries'
3632
cand --silent-errors 'Prevent filesystem error messages from appearing in stderr'
3733
cand --progress 'Report progress being made at the expense of performance'
34+
cand -h 'Print help information (use `--help` for more detail)'
35+
cand --help 'Print help information (use `--help` for more detail)'
36+
cand -V 'Print version information'
37+
cand --version 'Print version information'
3838
}
3939
]
4040
$completions[$command]

exports/completion.fish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
complete -c pdu -l bytes-format -d 'How to display the numbers of bytes' -r -f -a "{plain Display the value as-is,metric Display the value with a unit suffix in [metric scale](formatter::METRIC),binary Display the value with a unit suffix in [binary scale](formatter::BINARY)}"
2-
complete -c pdu -l quantity -d 'Aspect of the files/directories to be measured' -r -f -a "{len Measure apparent sizes, equivalent to the [len](std::fs::Metadata::len) method,blksize Measure block sizes, equivalent to the [blksize](std::os::unix::prelude::MetadataExt::blksize) method (POSIX only),blocks Count numbers of blocks, equivalent to the [blocks](std::os::unix::prelude::MetadataExt::blocks) method (POSIX only)}"
2+
complete -c pdu -l quantity -d 'Aspect of the files/directories to be measured' -r -f -a "{len Measure apparent sizes\, equivalent to the [len](std::fs::Metadata::len) method,blksize Measure block sizes\, equivalent to the [blksize](std::os::unix::prelude::MetadataExt::blksize) method (POSIX only),blocks Count numbers of blocks\, equivalent to the [blocks](std::os::unix::prelude::MetadataExt::blocks) method (POSIX only)}"
33
complete -c pdu -l max-depth -d 'Maximum depth to display the data (must be greater than 0)' -r
44
complete -c pdu -l total-width -d 'Width of the visualization' -r
55
complete -c pdu -l column-width -d 'Maximum widths of the tree column and width of the bar column' -r
66
complete -c pdu -l min-ratio -d 'Minimal size proportion required to appear' -r
7-
complete -c pdu -s h -l help -d 'Print help information'
8-
complete -c pdu -s V -l version -d 'Print version information'
97
complete -c pdu -l json-input -d 'Read JSON data from stdin'
108
complete -c pdu -l json-output -d 'Print JSON data instead of an ASCII chart'
119
complete -c pdu -l top-down -d 'Print the tree top-down instead of bottom-up'
1210
complete -c pdu -l align-left -d 'Fill the bars from left to right'
1311
complete -c pdu -l no-sort -d 'Preserve order of entries'
1412
complete -c pdu -l silent-errors -d 'Prevent filesystem error messages from appearing in stderr'
1513
complete -c pdu -l progress -d 'Report progress being made at the expense of performance'
14+
complete -c pdu -s h -l help -d 'Print help information (use `--help` for more detail)'
15+
complete -c pdu -s V -l version -d 'Print version information'

exports/completion.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ Register-ArgumentCompleter -Native -CommandName 'pdu' -ScriptBlock {
2727
[CompletionResult]::new('--total-width', 'total-width', [CompletionResultType]::ParameterName, 'Width of the visualization')
2828
[CompletionResult]::new('--column-width', 'column-width', [CompletionResultType]::ParameterName, 'Maximum widths of the tree column and width of the bar column')
2929
[CompletionResult]::new('--min-ratio', 'min-ratio', [CompletionResultType]::ParameterName, 'Minimal size proportion required to appear')
30-
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information')
31-
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information')
32-
[CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information')
33-
[CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information')
3430
[CompletionResult]::new('--json-input', 'json-input', [CompletionResultType]::ParameterName, 'Read JSON data from stdin')
3531
[CompletionResult]::new('--json-output', 'json-output', [CompletionResultType]::ParameterName, 'Print JSON data instead of an ASCII chart')
3632
[CompletionResult]::new('--top-down', 'top-down', [CompletionResultType]::ParameterName, 'Print the tree top-down instead of bottom-up')
3733
[CompletionResult]::new('--align-left', 'align-left', [CompletionResultType]::ParameterName, 'Fill the bars from left to right')
3834
[CompletionResult]::new('--no-sort', 'no-sort', [CompletionResultType]::ParameterName, 'Preserve order of entries')
3935
[CompletionResult]::new('--silent-errors', 'silent-errors', [CompletionResultType]::ParameterName, 'Prevent filesystem error messages from appearing in stderr')
4036
[CompletionResult]::new('--progress', 'progress', [CompletionResultType]::ParameterName, 'Report progress being made at the expense of performance')
37+
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information (use `--help` for more detail)')
38+
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information (use `--help` for more detail)')
39+
[CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information')
40+
[CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information')
4141
break
4242
}
4343
})

exports/completion.zsh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ blocks\:"Count numbers of blocks, equivalent to the \[blocks\](std::os::unix::pr
2525
'(--column-width)--total-width=[Width of the visualization]:TOTAL_WIDTH: ' \
2626
'*--column-width=[Maximum widths of the tree column and width of the bar column]:TREE_WIDTH: :TREE_WIDTH: ' \
2727
'--min-ratio=[Minimal size proportion required to appear]:MIN_RATIO: ' \
28-
'-h[Print help information]' \
29-
'--help[Print help information]' \
30-
'-V[Print version information]' \
31-
'--version[Print version information]' \
3228
'(--quantity)--json-input[Read JSON data from stdin]' \
3329
'--json-output[Print JSON data instead of an ASCII chart]' \
3430
'--top-down[Print the tree top-down instead of bottom-up]' \
3531
'--align-left[Fill the bars from left to right]' \
3632
'--no-sort[Preserve order of entries]' \
3733
'--silent-errors[Prevent filesystem error messages from appearing in stderr]' \
3834
'--progress[Report progress being made at the expense of performance]' \
39-
'*::files -- List of files and/or directories:' \
35+
'-h[Print help information (use `--help` for more detail)]' \
36+
'--help[Print help information (use `--help` for more detail)]' \
37+
'-V[Print version information]' \
38+
'--version[Print version information]' \
39+
'*::files -- List of files and/or directories:_files' \
4040
&& ret=0
4141
}
4242

0 commit comments

Comments
 (0)