summaryrefslogtreecommitdiff
path: root/Completion/Solaris
diff options
context:
space:
mode:
authorDanek Duvall <duvall@comfychair.org>2014-01-02 11:52:24 -0800
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-01-02 22:26:04 +0000
commitef2eaf1f787370356159bfb402a057d88b934ceb (patch)
tree27d4ce143fa38125c327c16587affa53d24c1b6b /Completion/Solaris
parent60372fbda67ba0f61bd0e706f599c1f6e5255f98 (diff)
downloadzsh-ef2eaf1f787370356159bfb402a057d88b934ceb.tar.gz
zsh-ef2eaf1f787370356159bfb402a057d88b934ceb.zip
32261: completion updates for Solaris 11, Update 1
Diffstat (limited to 'Completion/Solaris')
-rw-r--r--Completion/Solaris/Command/_svcadm9
-rw-r--r--Completion/Solaris/Command/_zoneadm20
2 files changed, 27 insertions, 2 deletions
diff --git a/Completion/Solaris/Command/_svcadm b/Completion/Solaris/Command/_svcadm
index f24675b41..347e25e2a 100644
--- a/Completion/Solaris/Command/_svcadm
+++ b/Completion/Solaris/Command/_svcadm
@@ -24,6 +24,7 @@ _svcadm() {
_arguments -A "-*" \
'-r[Recursively enable dependencies]' \
'-s[Wait for service to come online]' \
+ '-T[Timeout for -s]:seconds:' \
'-t[State change is temporary]' \
'*:instance FMRI:_svcs_fmri -i'
;;
@@ -31,6 +32,7 @@ _svcadm() {
(disable)
_arguments -A "-*" \
'-s[Wait for service to become disabled]' \
+ '-T[Timeout for -s]:seconds:' \
'-t[State change is temporary]' \
'*:instance FMRI:_svcs_fmri -i'
;;
@@ -38,6 +40,8 @@ _svcadm() {
(mark)
_arguments -A "-*" \
'-I[Change state immediately]' \
+ "-s[Wait for service to reach the new state]" \
+ '-T[Timeout for -s]:seconds:' \
'-t[State change is temporary]' \
':state:(degraded maintenance)' \
':instance FMRI:_svcs_fmri -i'
@@ -45,12 +49,15 @@ _svcadm() {
(restart|refresh|clear)
_arguments \
+ "-s[Wait for service to $service]" \
+ '-T[Timeout for -s]:seconds:' \
'*:instance FMRI:_svcs_fmri -i'
;;
(delegate)
_arguments -A "-*" \
'-s[Wait for instances to come online]' \
+ '-T[Timeout for -s]:seconds:' \
':restarter FMRI:_svcs_fmri -r' \
'*:FMRI:_svcs_fmri -i'
;;
@@ -58,6 +65,8 @@ _svcadm() {
(milestone)
_arguments -A "-*" \
'-d[Make milestone the default]' \
+ '-s[Wait for the transition to the new milestone]' \
+ '-T[Timeout for -s]:seconds:' \
'*:milestone FMRI:_svcs_fmri -m'
;;
diff --git a/Completion/Solaris/Command/_zoneadm b/Completion/Solaris/Command/_zoneadm
index 3f42673e1..ab63dc0b6 100644
--- a/Completion/Solaris/Command/_zoneadm
+++ b/Completion/Solaris/Command/_zoneadm
@@ -1,5 +1,5 @@
#compdef zoneadm
-# Synced with the S11U1 build 19 man page
+# Synced with the S11U1 man page
_zoneadm_bootargs() {
# This is a subset of the arguments to kernel(1M)
@@ -15,6 +15,7 @@ _zoneadm() {
local -a subcmds fields
local -a solaris_attach solaris_install
local -a solaris10_attach solaris10_install
+ local -a extended_create_options extended_destroy_options
local brand brand_args
subcmds=(
@@ -22,6 +23,17 @@ _zoneadm() {
ready reboot uninstall verify
)
+ extended_create_options=(
+ "force-zpool-import"
+ "force-zpool-create:ZFS pool: "
+ "force-zpool-create-all"
+ )
+
+ extended_destroy_options=(
+ "force-zpool-destroy:ZFS pool: "
+ "force-zpool-destroy-all"
+ )
+
solaris_attach=(
'(-d)-a[Path to archive]:path:_path_files'
'(-a)-d[Path to zonepath]:directory:_path_files -/'
@@ -82,6 +94,7 @@ _zoneadm() {
_arguments -A "-*" \
'-m[Clone mode]:mode:_values "mode" copy' \
'-s[Source snapshot]:snapshot:_zfs_dataset -t snap' \
+ '-x[Extended options]:extended option:_values -w "extended option" $extended_create_options' \
':source zone:_zones'
;;
@@ -94,6 +107,7 @@ _zoneadm() {
'-F[Force attach]' \
'-n[Path to zone manifest]:path to zone manifest:_path_files' \
'-u[Update on attach]' \
+ '-x[Extended options]:extended option:_values -w "extended option" $extended_create_options' \
${(P)brand_args}
;;
@@ -116,6 +130,7 @@ _zoneadm() {
brand_args=${brand}_install
fi
_arguments -A "-*" \
+ '-x[Extended options]:extended option:_values -w "extended option" $extended_create_options' \
${(P)brand_args}
;;
@@ -139,7 +154,8 @@ _zoneadm() {
("uninstall")
_arguments -A "-*" \
- '-F[Force]'
+ '-F[Force]' \
+ '-x[Extended options]:extended option:_values -w "extended option" $extended_destroy_options'
;;
esac
}