aboutsummaryrefslogtreecommitdiffstats
path: root/src/_udisksctl
diff options
context:
space:
mode:
authorOle Jørgen Brønner <olejorgenb@yahoo.no>2016-12-27 07:25:40 +0100
committerOle Jørgen Brønner <olejorgenb@yahoo.no>2016-12-27 07:25:40 +0100
commitbb32e9eb90d2edf695b1c6447b321fc016a396d6 (patch)
treeec367f6d10b334d32e5ff76e0a970d2635932a96 /src/_udisksctl
parentCompletion for 'udisksctl' (diff)
downloadzsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.tar
zsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.tar.gz
zsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.tar.bz2
zsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.tar.lz
zsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.tar.xz
zsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.tar.zst
zsh-completions-bb32e9eb90d2edf695b1c6447b321fc016a396d6.zip
udisksctl: add new/missing command
Diffstat (limited to 'src/_udisksctl')
-rw-r--r--src/_udisksctl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/_udisksctl b/src/_udisksctl
index 745c7d3..e0efe54 100644
--- a/src/_udisksctl
+++ b/src/_udisksctl
@@ -23,6 +23,7 @@
# -------
#
# * Damir Jelić <poljarinho at gmail.com> [1]
+# * Ole Jørgen Brønner <olejorgenb at yahoo.no> (minor additions)
#
# [1] https://lists.freedesktop.org/archives/devkit-devel/2014-February/001554.html
#
@@ -72,6 +73,7 @@ _udisksctl() {
'lock: Lock an encrypted device'
'loop-setup: Set-up a loop device'
'loop-delete: Delete a loop device'
+ 'power-off: Safely power off a drive'
'smart-simulate: Set SMART data for a drive'
)
_describe -t commands 'udisksctl commands' commands
@@ -120,6 +122,12 @@ _udisksctl() {
{-b,--block-device}'[Loop device to delete]:block device:_paths' \
'(--no-user-interaction)--no-user-interaction[Do not authenticate the user if needed]' \
;;
+ power-off)
+ _arguments \
+ {-p,--object-path}'[Object path for ATA device]:object path:_paths' \
+ {-b,--block-device}'[Device file for ATA devic]:block device:_paths' \
+ '(--no-user-interaction)--no-user-interaction[Do not authenticate the user if needed]' \
+ ;;
smart-simulate)
_arguments \
{-f,--file}'[File with libatasmart blob]:files:_files' \