mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
remove hard tabs from btrfs completion
This commit is contained in:
parent
cf02c2f0f3
commit
5a8de9087d
2 changed files with 77 additions and 75 deletions
|
@ -1,5 +1,7 @@
|
||||||
2014-02-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2014-02-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* Eric Cook: Completion/Linux/Command/_btrfs: remove hard tabs.
|
||||||
|
|
||||||
* m0viefreak: Util/helpfiles: 32402: prefer col -bx to colcrt.
|
* m0viefreak: Util/helpfiles: 32402: prefer col -bx to colcrt.
|
||||||
|
|
||||||
* m0viefreak: Util/helpfiles: 32405: Util/helpfiles: remove old
|
* m0viefreak: Util/helpfiles: 32405: Util/helpfiles: remove old
|
||||||
|
|
|
@ -45,74 +45,74 @@ while (( $#state )); do
|
||||||
curcontext="${curcontext%:*:*}:$service-${groups[grp]}-${${(P)group}[cmd]}:"
|
curcontext="${curcontext%:*:*}:$service-${groups[grp]}-${${(P)group}[cmd]}:"
|
||||||
args=( '(-)--help[print help information]' )
|
args=( '(-)--help[print help information]' )
|
||||||
case ${groups[grp]}:${${(P)group}[cmd]} in
|
case ${groups[grp]}:${${(P)group}[cmd]} in
|
||||||
filesystem:balance)
|
filesystem:balance)
|
||||||
if (( CURRENT == 3 )); then
|
if (( CURRENT == 3 )); then
|
||||||
state+=cmds
|
state+=cmds
|
||||||
else
|
else
|
||||||
shift words
|
shift words
|
||||||
(( CURRENT-- ))
|
(( CURRENT-- ))
|
||||||
state+=args
|
state+=args
|
||||||
fi
|
fi
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
subvolume:create) args+=( '1:destination:->mounts' );;
|
subvolume:create) args+=( '1:destination:->mounts' );;
|
||||||
subvolume:delete) args+=( '1:subvolume:_files -/' );;
|
subvolume:delete) args+=( '1:subvolume:_files -/' );;
|
||||||
subvolume:snapshot) args+=( '-r[readonly snapshot]' '1:snapshot:_files -/' );;
|
subvolume:snapshot) args+=( '-r[readonly snapshot]' '1:snapshot:_files -/' );;
|
||||||
subvolume:list) args+=( '-p[include parent ID in output]' '1:path:->mounts' );;
|
subvolume:list) args+=( '-p[include parent ID in output]' '1:path:->mounts' );;
|
||||||
subvolume:set-default) args+=( '1:id:_guard "[0-9]#" id' '2:path:->mounts' );;
|
subvolume:set-default) args+=( '1:id:_guard "[0-9]#" id' '2:path:->mounts' );;
|
||||||
filesystem:resize) args+=( '1:size:_guart "(|+|-)[0-9]#[GKM]"' '2:path:->mounts' );;
|
filesystem:resize) args+=( '1:size:_guart "(|+|-)[0-9]#[GKM]"' '2:path:->mounts' );;
|
||||||
filesystem:defragment)
|
filesystem:defragment)
|
||||||
args+=(
|
args+=(
|
||||||
'-v[verbose]'
|
'-v[verbose]'
|
||||||
'-c[compress files while defragmenting]'
|
'-c[compress files while defragmenting]'
|
||||||
'-f[flush after defragmenting]'
|
'-f[flush after defragmenting]'
|
||||||
'-s[start position]:byte position'
|
'-s[start position]:byte position'
|
||||||
'-l[defragment limited number of bytes]:length (bytes)'
|
'-l[defragment limited number of bytes]:length (bytes)'
|
||||||
'-t[defragment only files over a certain size]:minimum size (bytes)'
|
'-t[defragment only files over a certain size]:minimum size (bytes)'
|
||||||
'*:file:_files'
|
'*:file:_files'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
filesystem:label) args+=( '1:device:_files -g "*(d)"' '2:label' );;
|
filesystem:label) args+=( '1:device:_files -g "*(d)"' '2:label' );;
|
||||||
filesystem:show) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1: :_guard "^-*" uuid or label' );;
|
filesystem:show) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1: :_guard "^-*" uuid or label' );;
|
||||||
device:(add|delete)) args+=( '1:device:_files -g "*(d)"' '2:path:->mounts' );;
|
device:(add|delete)) args+=( '1:device:_files -g "*(d)"' '2:path:->mounts' );;
|
||||||
device:scan) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1:device:_files -g "*(d)"' );;
|
device:scan) args+=( '(1 -)--all-devices[scan all devices in /dev]' '1:device:_files -g "*(d)"' );;
|
||||||
scrub:(start|resume))
|
scrub:(start|resume))
|
||||||
args+=(
|
args+=(
|
||||||
"-B[don't background and print statistics at end]"
|
"-B[don't background and print statistics at end]"
|
||||||
'-d[print separate statistics for each device]'
|
'-d[print separate statistics for each device]'
|
||||||
'-q[omit error message and statistics]'
|
'-q[omit error message and statistics]'
|
||||||
'-r[read only mode]'
|
'-r[read only mode]'
|
||||||
'-u[scrub unused space too]'
|
'-u[scrub unused space too]'
|
||||||
'1:path or device:_files'
|
'1:path or device:_files'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
scrub:cancel) args+=( '1:path or device' );;
|
scrub:cancel) args+=( '1:path or device' );;
|
||||||
scrub:status) args+=( '-d[separate statistics for each device]' '1:path or device:_files' );;
|
scrub:status) args+=( '-d[separate statistics for each device]' '1:path or device:_files' );;
|
||||||
balance:start)
|
balance:start)
|
||||||
args+=(
|
args+=(
|
||||||
'(-m -s)-d+[act on data chunks]:filter:->filters'
|
'(-m -s)-d+[act on data chunks]:filter:->filters'
|
||||||
'(-d -s)-m+[act on metadata chunks]:filter:->filters'
|
'(-d -s)-m+[act on metadata chunks]:filter:->filters'
|
||||||
'(-d -m)-s+[act on system chunks (only under -f)]:filters:->filters'
|
'(-d -m)-s+[act on system chunks (only under -f)]:filters:->filters'
|
||||||
'-v[verbose mode]'
|
'-v[verbose mode]'
|
||||||
'-f[force reducing of metadata integrity]'
|
'-f[force reducing of metadata integrity]'
|
||||||
'1:path:_files -/'
|
'1:path:_files -/'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
balance:status) args+=( '-v[verbose mode]' '2:path:_files -/' );;
|
balance:status) args+=( '-v[verbose mode]' '2:path:_files -/' );;
|
||||||
balance:(pause|cancel|resume)) args+=( '2:path:_files -/' );;
|
balance:(pause|cancel|resume)) args+=( '2:path:_files -/' );;
|
||||||
inspect*:inode*) args+=( '-v[verbose mode]' '1:inode:_files' '2:path:_files -/' );;
|
inspect*:inode*) args+=( '-v[verbose mode]' '1:inode:_files' '2:path:_files -/' );;
|
||||||
inspect*:logical*)
|
inspect*:logical*)
|
||||||
args+=(
|
args+=(
|
||||||
'-v[verbose mode]'
|
'-v[verbose mode]'
|
||||||
'-P[skip the path resolving and print the inodes instead]'
|
'-P[skip the path resolving and print the inodes instead]'
|
||||||
'1:logical address:_files'
|
'1:logical address:_files'
|
||||||
'2:filesystem path:_files -/'
|
'2:filesystem path:_files -/'
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
subvolume:get-default) ;&
|
subvolume:get-default) ;&
|
||||||
*:sync) ;&
|
*:sync) ;&
|
||||||
*:df) args+=( '1:path:->mounts' );;
|
*:df) args+=( '1:path:->mounts' );;
|
||||||
*) args+=( '*: :_default' );; # fallback for unknown subcommands
|
*) args+=( '*: :_default' );; # fallback for unknown subcommands
|
||||||
esac
|
esac
|
||||||
shift words
|
shift words
|
||||||
(( CURRENT-- ))
|
(( CURRENT-- ))
|
||||||
|
@ -125,13 +125,13 @@ while (( $#state )); do
|
||||||
filters)
|
filters)
|
||||||
state=()
|
state=()
|
||||||
_values -s , filter \
|
_values -s , filter \
|
||||||
'profiles[balance only block groups in given replication profiles]:profile:->profiles' \
|
'profiles[balance only block groups in given replication profiles]:profile:->profiles' \
|
||||||
'usage[balance block groups with usage below percentage]:percentage' \
|
'usage[balance block groups with usage below percentage]:percentage' \
|
||||||
'devid[limit by device ID]:device ID' \
|
'devid[limit by device ID]:device ID' \
|
||||||
'drange[balance block groups overlapping byte range]:range' \
|
'drange[balance block groups overlapping byte range]:range' \
|
||||||
'vrange[balance block groups overlapping byte range in virtual address space]:range' \
|
'vrange[balance block groups overlapping byte range in virtual address space]:range' \
|
||||||
'convert[convert block groups to given profile]:profile:->profiles' \
|
'convert[convert block groups to given profile]:profile:->profiles' \
|
||||||
'soft[leave chunks that already have target profile]' && ret=0
|
'soft[leave chunks that already have target profile]' && ret=0
|
||||||
state=( $state )
|
state=( $state )
|
||||||
;;
|
;;
|
||||||
profiles)
|
profiles)
|
||||||
|
|
Loading…
Reference in a new issue