Skip to content

Commit 064d4a8

Browse files
committed
chore(deps): update clap-related dependencies
1 parent 07df774 commit 064d4a8

4 files changed

Lines changed: 25 additions & 17 deletions

File tree

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ itertools = "^0.13.0"
6060
assert-cmp = "^0.3.0"
6161
zero-copy-pads = "^0.2.0"
6262
terminal_size = "^0.4.0"
63-
clap = { version = "^4.3.8", optional = true }
64-
clap_complete = { version = "^4.5.36", optional = true }
63+
clap = { version = "^4.5.40", optional = true }
64+
clap_complete = { version = "^4.5.54", optional = true }
6565
clap-utilities = { version = "^0.2.0", optional = true }
6666
serde = { version = "^1.0.214", optional = true }
6767
serde_json = { version = "^1.0.132", optional = true }

exports/completion.bash

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
_pdu() {
22
local i cur prev opts cmd
33
COMPREPLY=()
4-
cur="${COMP_WORDS[COMP_CWORD]}"
5-
prev="${COMP_WORDS[COMP_CWORD-1]}"
4+
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
5+
cur="$2"
6+
else
7+
cur="${COMP_WORDS[COMP_CWORD]}"
8+
fi
9+
prev="$3"
610
cmd=""
711
opts=""
812

9-
for i in ${COMP_WORDS[@]}
13+
for i in "${COMP_WORDS[@]:0:COMP_CWORD}"
1014
do
1115
case "${cmd},${i}" in
1216
",$1")

exports/completion.fish

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
complete -c pdu -l bytes-format -d 'How to display the numbers of bytes' -r -f -a "{plain\t'Display plain number of bytes without units',metric\t'Use metric scale, i.e. 1K = 1000B, 1M = 1000K, and so on',binary\t'Use binary scale, i.e. 1K = 1024B, 1M = 1024K, and so on'}"
2-
complete -c pdu -l quantity -d 'Aspect of the files/directories to be measured' -r -f -a "{apparent-size\t'Measure apparent sizes',block-size\t'Measure block sizes (block-count * 512B)',block-count\t'Count numbers of blocks'}"
1+
complete -c pdu -l bytes-format -d 'How to display the numbers of bytes' -r -f -a "plain\t'Display plain number of bytes without units'
2+
metric\t'Use metric scale, i.e. 1K = 1000B, 1M = 1000K, and so on'
3+
binary\t'Use binary scale, i.e. 1K = 1024B, 1M = 1024K, and so on'"
4+
complete -c pdu -l quantity -d 'Aspect of the files/directories to be measured' -r -f -a "apparent-size\t'Measure apparent sizes'
5+
block-size\t'Measure block sizes (block-count * 512B)'
6+
block-count\t'Count numbers of blocks'"
37
complete -c pdu -l max-depth -d 'Maximum depth to display the data (must be greater than 0)' -r
48
complete -c pdu -l total-width -d 'Width of the visualization' -r
59
complete -c pdu -l column-width -d 'Maximum widths of the tree column and width of the bar column' -r

0 commit comments

Comments
 (0)