Skip to content

Commit

Permalink
Update completion files
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Mar 5, 2023
1 parent 7503a1d commit 6d618c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions exports/completion.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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)}"
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)}"
complete -c pdu -l bytes-format -d 'How to display the numbers of bytes' -r -f -a "{plain Display plain number of bytes without units,metric Use metric scale\, i.e. 1K = 1000B\, 1M = 1000K\, and so on,binary Use binary scale\, i.e. 1K = 1024B\, 1M = 1024K\, and so on}"
complete -c pdu -l quantity -d 'Aspect of the files/directories to be measured' -r -f -a "{len Measure apparent sizes,blksize Measure blksize,blocks Count number of blocks}"
complete -c pdu -l max-depth -d 'Maximum depth to display the data (must be greater than 0)' -r
complete -c pdu -l total-width -d 'Width of the visualization' -r
complete -c pdu -l column-width -d 'Maximum widths of the tree column and width of the bar column' -r
Expand Down
12 changes: 6 additions & 6 deletions exports/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ _pdu() {

local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
'--bytes-format=[How to display the numbers of bytes]:BYTES_FORMAT:((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)"))' \
'--quantity=[Aspect of the files/directories to be measured]:QUANTITY:((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)"))' \
'--bytes-format=[How to display the numbers of bytes]:BYTES_FORMAT:((plain\:"Display plain number of bytes without units"
metric\:"Use metric scale, i.e. 1K = 1000B, 1M = 1000K, and so on"
binary\:"Use binary scale, i.e. 1K = 1024B, 1M = 1024K, and so on"))' \
'--quantity=[Aspect of the files/directories to be measured]:QUANTITY:((len\:"Measure apparent sizes"
blksize\:"Measure blksize"
blocks\:"Count number of blocks"))' \
'--max-depth=[Maximum depth to display the data (must be greater than 0)]:MAX_DEPTH: ' \
'(--column-width)--total-width=[Width of the visualization]:TOTAL_WIDTH: ' \
'*--column-width=[Maximum widths of the tree column and width of the bar column]:TREE_WIDTH: :TREE_WIDTH: ' \
Expand Down

0 comments on commit 6d618c5

Please sign in to comment.