From ef2eaf1f787370356159bfb402a057d88b934ceb Mon Sep 17 00:00:00 2001 From: Danek Duvall Date: Thu, 2 Jan 2014 11:52:24 -0800 Subject: 32261: completion updates for Solaris 11, Update 1 --- Completion/Solaris/Command/_svcadm | 9 +++++++++ Completion/Solaris/Command/_zoneadm | 20 ++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) (limited to 'Completion/Solaris') 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 } -- cgit 1.4.1