From 98578ec2412d5b5d2e105f3ddd0d41eb21c3de14 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 16 Dec 2011 14:21:45 +0100 Subject: [PATCH 01/36] `setopt append_history` is not necessary. Especially given the inc_append_history option, it is not necessary to set the (default) append_history option. --- lib/history.zsh | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/history.zsh b/lib/history.zsh index 876936b87..b162a5577 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -3,7 +3,6 @@ HISTFILE=$HOME/.zsh_history HISTSIZE=10000 SAVEHIST=10000 -setopt append_history setopt extended_history setopt hist_expire_dups_first setopt hist_ignore_dups # ignore duplication command history list From c9c021478ea4a2b55aac8cda3cd0d05137443f36 Mon Sep 17 00:00:00 2001 From: William Roe Date: Thu, 23 Feb 2012 14:11:52 +0000 Subject: [PATCH 02/36] Add completion for pip install -r - so that it autocompletes requirements filenames --- plugins/pip/_pip | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pip/_pip b/plugins/pip/_pip index df53ba5ce..0b66913a0 100644 --- a/plugins/pip/_pip +++ b/plugins/pip/_pip @@ -58,6 +58,7 @@ case "$words[1]" in _arguments \ '(-U --upgrade)'{-U,--upgrade}'[upgrade all packages to the newest available version]' \ '(-f --find-links)'{-f,--find-links}'[URL for finding packages]' \ + '(-r --requirement)'{-r,--requirement}'[Requirements file for packages to install]:File:_files' \ '(--no-deps --no-dependencies)'{--no-deps,--no-dependencies}'[iIgnore package dependencies]' \ '(--no-install)--no-install[only download packages]' \ '(--no-download)--no-download[only install downloaded packages]' \ From fa1657e10bc062394390d83d0bb5d3848905f5b6 Mon Sep 17 00:00:00 2001 From: David Lee Date: Sun, 26 Feb 2012 02:29:24 -0800 Subject: [PATCH 03/36] Add gem build autocompletion --- plugins/gem/_gem | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gem/_gem b/plugins/gem/_gem index 83cba40d1..3c0922f2c 100644 --- a/plugins/gem/_gem +++ b/plugins/gem/_gem @@ -9,6 +9,7 @@ _gem_installed() { local -a _1st_arguments _1st_arguments=( + 'build:Build a gem from a gemspec' 'cert:Manage RubyGems certificates and signing settings' 'check:Check installed gems' 'cleanup:Clean up old versions of installed gems in the local repository' @@ -53,6 +54,9 @@ if (( CURRENT == 1 )); then fi case "$words[1]" in + build) + _files -g "*.gemspec" + ;; list) if [[ "$state" == forms ]]; then _gem_installed From 071d0d68ec1a7f883c10529fda47630dcc3f5afe Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Mon, 5 Mar 2012 11:55:30 +0000 Subject: [PATCH 04/36] Added link to wiki page for plugins to README. The wiki is more readable than going to the plugins directory. --- README.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.textile b/README.textile index bf6776665..64dbc96e9 100644 --- a/README.textile +++ b/README.textile @@ -43,7 +43,7 @@ You _might_ need to modify your PATH in ~/.zshrc if you're not able to find some h2. Usage -* enable the plugins you want in your @~/.zshrc@ (take a look at @plugins/@ to see what's possible) +* enable the plugins you want in your @~/.zshrc@ (take a look at the @plugins/@ directory and the "wiki":https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins to see what's possible) ** example: @plugins=(git osx ruby)@ * Theme support: Change the @ZSH_THEME@ environment variable in @~/.zshrc@. ** Take a look at the "current themes":https://wiki.github.com/robbyrussell/oh-my-zsh/themes that come bundled with _Oh My Zsh_. From 4a88743d1eb28f7d928c6d7ce3ebeccc6b1991a8 Mon Sep 17 00:00:00 2001 From: William Ting Date: Tue, 6 Mar 2012 14:31:03 -1000 Subject: [PATCH 05/36] fix gnzh theme to detect local rvm installations --- themes/gnzh.zsh-theme | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/gnzh.zsh-theme b/themes/gnzh.zsh-theme index 3c6b8a409..33f187bc6 100644 --- a/themes/gnzh.zsh-theme +++ b/themes/gnzh.zsh-theme @@ -6,7 +6,7 @@ autoload -U colors zsh/terminfo # Used in the colour alias below colors setopt prompt_subst -# make some aliases for the colours: (coud use normal escap.seq's too) +# make some aliases for the colours: (could use normal escape sequences too) for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do eval PR_$color='%{$fg[${(L)color}]%}' done @@ -25,7 +25,7 @@ elif [[ $UID -eq 0 ]]; then # root fi # Check if we are on SSH or not -if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then +if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then eval PR_HOST='${PR_YELLOW}%M${PR_NO_COLOR}' #SSH else eval PR_HOST='${PR_GREEN}%M${PR_NO_COLOR}' # no SSH @@ -36,12 +36,12 @@ local return_code="%(?..%{$PR_RED%}%? ↵%{$PR_NO_COLOR%})" local user_host='${PR_USER}${PR_CYAN}@${PR_HOST}' local current_dir='%{$PR_BOLD$PR_BLUE%}%~%{$PR_NO_COLOR%}' local rvm_ruby='' -if which rvm-prompt &> /dev/null; then +if ${HOME}/.rvm/bin/rvm-prompt &> /dev/null; then # detect local user rvm installation + rvm_ruby='%{$PR_RED%}‹$(${HOME}/.rvm/bin/rvm-prompt i v g s)›%{$PR_NO_COLOR%}' +elif which rvm-prompt &> /dev/null; then # detect sysem-wide rvm installation rvm_ruby='%{$PR_RED%}‹$(rvm-prompt i v g s)›%{$PR_NO_COLOR%}' -else - if which rbenv &> /dev/null; then - rvm_ruby='%{$PR_RED%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$PR_NO_COLOR%}' - fi +elif which rbenv &> /dev/null; then # detect Simple Ruby Version management + rvm_ruby='%{$PR_RED%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$PR_NO_COLOR%}' fi local git_branch='$(git_prompt_info)%{$PR_NO_COLOR%}' From aefacb69509f8cdd4ad3b0bba9b77cd9ee63e115 Mon Sep 17 00:00:00 2001 From: cmar Date: Fri, 9 Mar 2012 08:53:09 -0500 Subject: [PATCH 06/36] added powed command to list pow urls --- plugins/pow/pow.plugin.zsh | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh index 399a54cb0..c823cdb22 100644 --- a/plugins/pow/pow.plugin.zsh +++ b/plugins/pow/pow.plugin.zsh @@ -8,18 +8,18 @@ # Supports command completion. # # If you are not already using completion you might need to enable it with -# +# # autoload -U compinit compinit # # Changes: # -# Defaults to the current application, and will walk up the tree to find +# Defaults to the current application, and will walk up the tree to find # a config.ru file and restart the corresponding app # -# Will Detect if a app does not exist in pow and print a (slightly) helpful +# Will Detect if a app does not exist in pow and print a (slightly) helpful # error message -rack_root_detect(){ +rack_root(){ setopt chaselinks local orgdir=$(pwd) local basedir=$(pwd) @@ -32,6 +32,11 @@ rack_root_detect(){ builtin cd $orgdir 2>/dev/null [[ ${basedir} == "/" ]] && return 1 + echo $basedir +} + +rack_root_detect(){ + basedir=$(rack_root) echo `basename $basedir | sed -E "s/.(com|net|org)//"` } @@ -51,16 +56,21 @@ kapow(){ compctl -W ~/.pow -/ kapow powit(){ - local basedir=$(pwd) + local basedir=$(pwd) local vhost=$1 [ ! -n "$vhost" ] && vhost=$(rack_root_detect) if [ ! -h ~/.pow/$vhost ] - then - echo "pow: Symlinking your app with pow. ${vhost}" - [ ! -d ~/.pow/${vhost} ] && ln -s $basedir ~/.pow/$vhost + then + echo "pow: Symlinking your app with pow. ${vhost}" + [ ! -d ~/.pow/${vhost} ] && ln -s $basedir ~/.pow/$vhost return 1 fi } +powed(){ + local basedir=$(rack_root) + find ~/.pow/ -type l -lname "*$basedir*" -exec basename {}'.dev' \; +} + # View the standard out (puts) from any pow app -alias kaput="tail -f ~/Library/Logs/Pow/apps/*" +alias kaput="tail -f ~/Library/Logs/Pow/apps/*" \ No newline at end of file From e652756fdb0495e58f3f4f3be3a82aa9f166731d Mon Sep 17 00:00:00 2001 From: Derek Wyatt Date: Tue, 20 Mar 2012 08:16:44 -0400 Subject: [PATCH 07/36] A plugin that makes it easier to interact with the (single) running instance of gvim --- plugins/vim-interaction/README.md | 69 +++++++++++++++++++ .../vim-interaction.plugin.zsh | 67 ++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 plugins/vim-interaction/README.md create mode 100644 plugins/vim-interaction/vim-interaction.plugin.zsh diff --git a/plugins/vim-interaction/README.md b/plugins/vim-interaction/README.md new file mode 100644 index 000000000..65e678b51 --- /dev/null +++ b/plugins/vim-interaction/README.md @@ -0,0 +1,69 @@ +# Vim Interaction # + +The plugin presents a function called `callvim` whose usage is: + + usage: callvim [-b cmd] [-a cmd] [file ... fileN] + + -b cmd Run this command in GVIM before editing the first file + -a cmd Run this command in GVIM after editing the first file + file The file to edit + ... fileN The other files to add to the argslist + +## Rationale ## + +The idea for this script is to give you some decent interaction with a running +GVim session. Normally you'll be running around your filesystem doing any +number of amazing things and you'll need to load some files into GVim for +editing, inspecting, destruction, or other bits of mayhem. This script lets you +do that. + +## Aliases ## + +There are a few aliases presented as well: + +* `v` A shorthand for `callvim` +* `vvsp` Edits the passed in file but first makes a vertical split +* `vhsp` Edits the passed in file but first makes a horizontal split + +## Examples ## + +This will load `/tmp/myfile.scala` into the running GVim session: + + > v /tmp/myfile.scala + +This will load it after first doing a vertical split: + + > vvsp /tmp/myfile.scala + or + > v -b':vsp' /tmp/myfile.scala + +This will load it after doing a horizontal split, then moving to the bottom of +the file: + + > vhsp -aG /tmp/myfile.scala + or + > v -b':sp' -aG /tmp/myfile.scala + +This will load the file and then copy the first line to the end (Why you would +ever want to do this... I dunno): + + > v -a':1t$' /tmp/myfile.scala + +And this will load all of the `*.txt` files into the args list: + + > v *.txt + +If you want to load files into areas that are already split, use one of the +aliases for that: + + # Do a ':wincmd h' first + > vh /tmp/myfile.scala + + # Do a ':wincmd j' first + > vj /tmp/myfile.scala + + # Do a ':wincmd k' first + > vk /tmp/myfile.scala + + # Do a ':wincmd l' first + > vl /tmp/myfile.scala diff --git a/plugins/vim-interaction/vim-interaction.plugin.zsh b/plugins/vim-interaction/vim-interaction.plugin.zsh new file mode 100644 index 000000000..3f346dfc3 --- /dev/null +++ b/plugins/vim-interaction/vim-interaction.plugin.zsh @@ -0,0 +1,67 @@ +# +# See README.md +# +# Derek Wyatt (derek@{myfirstnamemylastname}.org +# + +function resolveFile +{ + if [ -f "$1" ]; then + echo $(readlink -f "$1") + else + echo "$1" + fi +} + +function callvim +{ + if [[ $# == 0 ]]; then + cat <} == $after ]]; then + after="$after" + fi + if [[ ${before#:} != $before && ${before%} == $before ]]; then + before="$before" + fi + local files="" + for f in $@ + do + files="$files $(resolveFile $f)" + done + if [[ -n $files ]]; then + files=':args! '"$files" + fi + cmd="$before$files$after" + gvim --remote-send "$cmd" +} + +alias v=callvim +alias vvsp="callvim -b':vsp'" +alias vhsp="callvim -b':sp'" +alias vk="callvim -b':wincmd k'" +alias vj="callvim -b':wincmd j'" +alias vl="callvim -b':wincmd l'" +alias vh="callvim -b':wincmd h'" From 92227f171ad3777c2671395a9e1d7fbb86a11428 Mon Sep 17 00:00:00 2001 From: Derek Wyatt Date: Tue, 20 Mar 2012 09:55:25 -0400 Subject: [PATCH 08/36] Fixed: If you callvim on a non-existant file with a relative path, the CWD of the running gvim process is used, and that's not right. We use the PWD explicitly instead, in this case --- plugins/vim-interaction/vim-interaction.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/vim-interaction/vim-interaction.plugin.zsh b/plugins/vim-interaction/vim-interaction.plugin.zsh index 3f346dfc3..309012b34 100644 --- a/plugins/vim-interaction/vim-interaction.plugin.zsh +++ b/plugins/vim-interaction/vim-interaction.plugin.zsh @@ -8,8 +8,10 @@ function resolveFile { if [ -f "$1" ]; then echo $(readlink -f "$1") + elif [[ "${1#/}" == "$1" ]]; then + echo "$(pwd)/$1" else - echo "$1" + echo $1 fi } From 04a7536641621e0188987b5bb1362e6b922a8771 Mon Sep 17 00:00:00 2001 From: Derek Wyatt Date: Fri, 30 Mar 2012 06:33:06 -0400 Subject: [PATCH 09/36] Added an optional callout to the end of the interaction function. I put it in to allow me to put the window focus on MacVim / GVim depending on the different OS I happen to be on --- plugins/vim-interaction/vim-interaction.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/vim-interaction/vim-interaction.plugin.zsh b/plugins/vim-interaction/vim-interaction.plugin.zsh index 309012b34..af7e60c88 100644 --- a/plugins/vim-interaction/vim-interaction.plugin.zsh +++ b/plugins/vim-interaction/vim-interaction.plugin.zsh @@ -58,6 +58,9 @@ EOH fi cmd="$before$files$after" gvim --remote-send "$cmd" + if typeset -f postCallVim > /dev/null; then + postCallVim + fi } alias v=callvim From c2e459ad43b060c9dc2548e378a2f2d412d6da60 Mon Sep 17 00:00:00 2001 From: Derek Wyatt Date: Fri, 30 Mar 2012 06:39:49 -0400 Subject: [PATCH 10/36] Updated the README to include documentation on the postCallVim callout --- plugins/vim-interaction/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/vim-interaction/README.md b/plugins/vim-interaction/README.md index 65e678b51..681648018 100644 --- a/plugins/vim-interaction/README.md +++ b/plugins/vim-interaction/README.md @@ -25,6 +25,19 @@ There are a few aliases presented as well: * `vvsp` Edits the passed in file but first makes a vertical split * `vhsp` Edits the passed in file but first makes a horizontal split +## Post Callout ## + +At the end of the `callvim` function we invoke the `postCallVim` function if it +exists. If you're using MacVim, for example, you could define a function that +brings window focus to it after the file is loaded: + + function postCallVim + { + osascript -e 'tell application "MacVim" to activate' + } + +This'll be different depending on your OS / Window Manager. + ## Examples ## This will load `/tmp/myfile.scala` into the running GVim session: From 94dd6515365e0d2655485c5afc27e75a921fa6ec Mon Sep 17 00:00:00 2001 From: Derek Wyatt Date: Sun, 1 Apr 2012 15:41:39 -0400 Subject: [PATCH 11/36] Added an to the begining of everything. I ran something when I was in insert mode once and all it did was shove !args... into the buffer. first. --- plugins/vim-interaction/vim-interaction.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vim-interaction/vim-interaction.plugin.zsh b/plugins/vim-interaction/vim-interaction.plugin.zsh index af7e60c88..5142f1f9b 100644 --- a/plugins/vim-interaction/vim-interaction.plugin.zsh +++ b/plugins/vim-interaction/vim-interaction.plugin.zsh @@ -30,7 +30,7 @@ EOH fi local cmd="" - local before="" + local before="" local after="" while getopts ":b:a:" option do From 8762b27d67156886d144213ba656aa3e8edfcf8b Mon Sep 17 00:00:00 2001 From: cmar Date: Wed, 4 Apr 2012 12:54:31 -0400 Subject: [PATCH 12/36] command to restart pow process --- plugins/pow/pow.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh index c823cdb22..7f86c0c76 100644 --- a/plugins/pow/pow.plugin.zsh +++ b/plugins/pow/pow.plugin.zsh @@ -72,5 +72,14 @@ powed(){ find ~/.pow/ -type l -lname "*$basedir*" -exec basename {}'.dev' \; } +# Restart pow process +# taken from http://www.matthewratzloff.com/blog/2011/12/23/restarting-pow-when-dns-stops-responding +repow(){ + lsof | grep 20560 | awk '{print $2}' | xargs kill -9 + launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist + launchctl load ~/Library/LaunchAgents/cx.pow.powd.plist + echo "restarted pow" +} + # View the standard out (puts) from any pow app alias kaput="tail -f ~/Library/Logs/Pow/apps/*" \ No newline at end of file From af03da0dc91a32175f99f85ab1fc09dc4246fef9 Mon Sep 17 00:00:00 2001 From: Peter Jaros Date: Wed, 16 May 2012 14:51:52 -0400 Subject: [PATCH 13/36] Move example plugin to the custom plugins dir. --- .gitignore | 4 ++-- custom/{ => plugins}/example/example.plugin.zsh | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename custom/{ => plugins}/example/example.plugin.zsh (100%) diff --git a/.gitignore b/.gitignore index 2e8db7341..fdd13bb87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,8 @@ locals.zsh log/.zsh_history projects.zsh -custom/* -!custom/example +custom +!custom/plugins/example !custom/example.zsh cache *.swp diff --git a/custom/example/example.plugin.zsh b/custom/plugins/example/example.plugin.zsh similarity index 100% rename from custom/example/example.plugin.zsh rename to custom/plugins/example/example.plugin.zsh From 4f9cfee9bdfcab18bb83d17129f090a62dc05eac Mon Sep 17 00:00:00 2001 From: nXqd Date: Thu, 14 Jun 2012 08:06:36 +0300 Subject: [PATCH 14/36] avoid VCS folders --- lib/grep.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/grep.zsh b/lib/grep.zsh index 93c4270b6..25345bd06 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -2,5 +2,11 @@ # Color grep results # Examples: http://rubyurl.com/ZXv # -export GREP_OPTIONS='--color=auto' + +# avoid VCS folders +GREP_OPTIONS= +for PATTERN in .cvs .git .hg .svn; do + GREP_OPTIONS+="--exclude-dir=$PATTERN " +done +export GREP_OPTIONS+='--color=auto ' export GREP_COLOR='1;32' \ No newline at end of file From 4d0c135798368a6241752060ffc6a2190a94a810 Mon Sep 17 00:00:00 2001 From: fred-o Date: Tue, 10 Jul 2012 14:49:32 +0200 Subject: [PATCH 15/36] added completion for all asadmin subcommands --- plugins/glassfish/_asadmin | 345 +++++++++++++++++++++++++++++++++++++ 1 file changed, 345 insertions(+) create mode 100644 plugins/glassfish/_asadmin diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin new file mode 100644 index 000000000..c8f62c67c --- /dev/null +++ b/plugins/glassfish/_asadmin @@ -0,0 +1,345 @@ +#compdef asadmin +#autoload + +local -a _1st_arguments +_1st_arguments=( + "add-library:adds one or more library JAR files to GlassFish Server" + "add-resources:creates the resources specified in an XML file" + "apply-http-lb-changes:applies load balancer configuration changes to the load balancer" + "backup-domain:performs a backup on the domain" + "change-admin-password:changes the administrator password" + "change-master-broker:changes the master broker in a Message Queue cluster providing JMS services for a GlassFish Server cluster." + "change-master-password:changes the master password" + "collect-log-files:creates a ZIP archive of all available log files" + "configure-jms-cluster:configures the Message Queue cluster providing JMS services to a GlassFish Server cluster" + "configure-lb-weight:sets load balancing weights for clustered instances" + "configure-ldap-for-admin:configures the authentication realm named admin-realm for the given LDAP" + "copy-config:copies an existing named configuration to create another configuration" + "create-admin-object:adds the administered object with the specified JNDI name for a resource adapter" + "create-application-ref:creates a reference to an application" + "create-audit-module:adds an audit module" + "create-auth-realm:adds the named authentication realm" + "create-cluster:creates a GlassFish Server cluster" + "create-connector-connection-pool:adds a connection pool with the specified connection pool name" + "create-connector-resource:registers the connector resource with the specified JNDI name" + "create-connector-security-map:creates a security map for the specified connector connection pool" + "create-connector-work-security-map:creates a work security map for the specified resource adapter" + "create-custom-resource:creates a custom resource" + "create-domain:creates a domain" + "create-file-user:creates a new file user" + "create-http:sets HTTP parameters for a protocol" + "create-http-health-checker:creates a health-checker for a specified load balancer configuration" + "create-http-lb:creates a load balancer" + "create-http-lb-config:creates a configuration for the load balancer" + "create-http-lb-ref:adds an existing cluster or server instance to an existing load balancer configuration or load balancer" + "create-http-listener:adds a new HTTP network listener socket" + "create-http-redirect:adds a new HTTP redirect" + "create-iiop-listener:adds an IIOP listener" + "create-instance:creates a GlassFish Server instance" + "create-jacc-provider:enables administrators to create a JACC provider that can be used by third-party authorization modules for applications running in GlassFish Server" + "create-javamail-resource:creates a JavaMail session resource" + "create-jdbc-connection-pool:registers a JDBC connection pool" + "create-jdbc-resource:creates a JDBC resource with the specified JNDI name" + "create-jms-host:creates a JMS host" + "create-jms-resource:creates a JMS resource" + "create-jmsdest:creates a JMS physical destination" + "create-jndi-resource:registers a JNDI resource" + "create-jvm-options:creates options for the Java application launcher" + "create-lifecycle-module:creates a lifecycle module" + "create-local-instance:creates a GlassFish Server instance on the host where the subcommand is run" + "create-message-security-provider:enables administrators to create a message security provider, which specifies how SOAP messages will be secured." + "create-network-listener:adds a new network listener socket" + "create-node-config:creates a node that is not enabled for remote communication" + "create-node-dcom:creates a node that is enabled for com munication over DCOM" + "create-node-ssh:creates a node that is enabled for communication over SSH" + "create-password-alias:creates a password alias" + "create-profiler:creates the profiler element" + "create-protocol:adds a new protocol" + "create-protocol-filter:adds a new protocol filter" + "create-protocol-finder:adds a new protocol finder" + "create-resource-adapter-config:creates the configuration information for the connector module" + "create-resource-ref:creates a reference to a resource" + "create-service:configures the starting of a DAS or a GlassFish Server instance on an unattended boot" + "create-ssl:creates and configures the SSL element in the selected HTTP listener, IIOP listener, or IIOP service" + "create-system-properties:adds one or more system property elements that can be referenced elsewhere in the configuration." + "create-threadpool:adds a thread pool" + "create-transport:adds a new transport" + "create-virtual-server:creates the named virtual server" + "delete-admin-object:removes the administered object with the specified JNDI name." + "delete-application-ref:removes a reference to an applica tion" + "delete-audit-module:removes the named audit-module" + "delete-auth-realm:removes the named authentication realm" + "delete-cluster:deletes a GlassFish Server cluster" + "delete-config:deletes an existing named configuration" + "delete-connector-connection-pool:removes the specified connector connection pool" + "delete-connector-resource:removes the connector resource with the specified JNDI name" + "delete-connector-security-map:deletes a security map for the specified connector connection pool" + "delete-connector-work-security-map:deletes a work security map for the specified resource adapter" + "delete-custom-resource:removes a custom resource" + "delete-domain:deletes a domain" + "delete-file-user:removes the named file user" + "delete-http:removes HTTP parameters from a protocol" + "delete-http-health-checker:deletes the health-checker for a specified load balancer configuration" + "delete-http-lb:deletes a load balancer" + "delete-http-lb-config:deletes a load balancer configuration" + "delete-http-lb-ref:deletes the cluster or server instance from a load balancer" + "delete-http-listener:removes a network listener" + "delete-http-redirect:removes an HTTP redirect" + "delete-iiop-listener:removes an IIOP listener" + "delete-instance:deletes a GlassFish Server instance" + "delete-jacc-provider:enables administrators to delete JACC providers defined for a domain" + "delete-javamail-resource:removes a JavaMail session resource" + "delete-jdbc-connection-pool:removes the specified JDBC connection pool" + "delete-jdbc-resource:removes a JDBC resource with the specified JNDI name" + "delete-jms-host:removes a JMS host" + "delete-jms-resource:removes a JMS resource" + "delete-jmsdest:removes a JMS physical destination" + "delete-jndi-resource:removes a JNDI resource" + "delete-jvm-options:removes one or more options for the Java application launcher" + "delete-lifecycle-module:removes the lifecycle module" + "delete-local-instance:deletes a GlassFish Server instance on the machine where the subcommand is run" + "delete-log-levels:" + "delete-message-security-provider:enables administrators to delete a message security provider" + "delete-network-listener:removes a network listener" + "delete-node-config:deletes a node that is not enabled for remote communication" + "delete-node-dcom:deletes a node that is enabled for communication over DCOM" + "delete-node-ssh:deletes a node that is enabled for communication over SSH" + "delete-password-alias:deletes a password alias" + "delete-profiler:removes the profiler element" + "delete-protocol:removes a protocol" + "delete-protocol-filter:removes a protocol filter" + "delete-protocol-finder:removes a protocol finder" + "delete-resource-adapter-config:deletes the resource adapter configuration" + "delete-resource-ref:removes a reference to a resource" + "delete-ssl:deletes the SSL element in the selected HTTP listener, IIOP listener, or IIOP service" + "delete-system-property:removes a system property of the domain, configuration, cluster, or server instance, one at a time" + "delete-threadpool:removes a thread pool" + "delete-transport:removes a transport" + "delete-virtual-server:removes a virtual server" + "deploy:deploys the specified component" + "deploydir:deploys an exploded format of application archive" + "environment variable" + "disable:disables the component" + "disable-http-lb-application:disables an application managed by a load balancer" + "disable-http-lb-server:disables a sever or cluster managed by a load balancer" + "disable-monitoring:disables monitoring for the server or for specific monitorable modules" + "disable-secure-admin:disables secure admin if it is already enabled." + "disable-secure-admin-internal-user:Instructs the GlassFish Server DAS and instances to not use the specified admin user to authenticate with each other and to authorize admin operations." + "disable-secure-admin-principal:disables the certificate for authorizing access in secure administration." + "enable:enables the component" + "enable-http-lb-application:enables a previously-disabled application managed by a load balancer" + "enable-http-lb-server:enables a previously disabled sever or cluster managed by a load balancer" + "enable-monitoring:enables monitoring for the server or for specific monitorable modules" + "enable-secure-admin:enables secure admin (if it is not already enabled), optionally changing the alias used for DAS-to-instance admin messages or the alias used for instance-to-DAS admin messages." + "enable-secure-admin-internal-user:Instructs the GlassFish Server DAS and instances to use the specified admin user and the password associated with the password alias to authenticate with each other and to authorize admin operations." + "enable-secure-admin-principal:Instructs GlassFish Server, when secure admin is enabled, to accept admin requests from clients identified by the specified SSL certificate." + "export:marks a variable name for automatic export to the environment of subsequent commands in multimode" + "export-http-lb-config:exports the load balancer configuration or load balancer to a file" + "export-sync-bundle:exports the configuration data of a cluster or standalone instance to an archive file" + "flush-connection-pool:reintializes all connections established in the specified connection pool" + "flush-jmsdest:purges messages in a JMS destination." + "freeze-transaction-service:freezes the transaction subsystem" + "generate-domain-schema:" + "generate-jvm-report:shows the JVM machine statistics for a given target instance" + "get:gets the values of configurable or monitorable attributes" + "get-client-stubs:retrieves the application JAR files needed to launch the application client." + "get-health:provides information on the cluster health" + "asadmin:utility for performing administrative tasks for Oracle GlassFish Server" + "import-sync-bundle:imports the configuration data of a clustered instance or standalone instance from an archive file" + "install-node:installs GlassFish Server software on specified SSH-enabled hosts" + "install-node-dcom:installs GlassFish Server software on specified DCOM-enabled hosts" + "install-node-ssh:installs GlassFish Server software on specified SSH-enabled hosts" + "jms-ping:checks if the JMS service is up and running" + "list:lists configurable or monitorable elements" + "list-admin-objects:gets all the administered objects" + "list-application-refs:lists the existing application references" + "list-applications:lists deployed applications" + "list-audit-modules:gets all audit modules and displays them" + "list-auth-realms:lists the authentication realms" + "list-backups:lists all backups" + "list-clusters:lists existing clusters in a domain" + "list-commands:lists available commands" + "list-components:lists deployed components" + "list-configs:lists named configurations" + "list-connector-connection-pools:lists the existing connector connection pools" + "list-connector-resources:lists all connector resources" + "list-connector-security-maps:lists the security maps belonging to the specified connector connection pool" + "list-connector-work-security-maps:lists the work security maps belonging to the specified resource adapter" + "list-containers:lists application containers" + "list-custom-resources:gets all custom resources" + "list-domains:lists the domains in the specified directory" + "list-file-groups:lists file groups" + "list-file-users:lists the file users" + "list-http-lb-configs:lists load balancer configurations" + "list-http-lbs:lists load balancers" + "list-http-listeners:lists the existing network listeners" + "list-iiop-listeners:lists the existing IIOP listeners" + "list-instances:lists GlassFish Server instances in a domain" + "list-jacc-providers:enables administrators to list JACC providers defined for a domain" + "list-javamail-resources:lists the existing JavaMail session resources" + "list-jdbc-connection-pools:lists all JDBC connection pools" + "list-jdbc-resources:lists all JDBC resources" + "list-jms-hosts:lists the existing JMS hosts" + "list-jms-resources:lists the JMS resources" + "list-jmsdest:lists the existing JMS physical destinations" + "list-jndi-entries:browses and queries the JNDI tree" + "list-jndi-resources:lists all existing JNDI resources" + "list-jvm-options:lists options for the Java application launcher" + "list-libraries:lists library JAR files on GlassFish Server" + "list-lifecycle-modules:lists the lifecycle modules" + "list-log-attributes:lists all logging attributes defined for a specified target in a domain" + "list-log-levels:lists the loggers and their log levels" + "list-message-security-providers:lists all security message providers for the given message layer" + "list-modules:lists GlassFish Server modules" + "list-network-listeners:lists the existing network listeners" + "list-nodes:lists all GlassFish Server nodes in a domain" + "list-nodes-config:lists all GlassFish Server nodes that do not support remote communication in a domain" + "list-nodes-dcom:lists all GlassFish Server nodes that support communication over DCOM in a domain" + "list-nodes-ssh:lists all GlassFish Server nodes that support communication over SSH in a domain" + "list-password-aliases:lists all password aliases" + "list-persistence-types:lists registered persistence types for HTTP sessions and SFSB instances" + "list-protocol-filters:lists the existing protocol filters" + "list-protocol-finders:lists the existing protocol finders" + "list-protocols:lists the existing protocols" + "list-resource-adapter-configs:lists the names of the current resource adapter configurations" + "list-resource-refs:lists existing resource references" + "list-secure-admin-internal-users:lists the user names that the GlassFish Server DAS and instances use to authenticate with each other and to authorize admin operations." + "list-secure-admin-principals:lists the certificates for which GlassFish Server accepts admin requests from clients." + "list-sub-components:lists EJB or servlet components in a deployed module or module of a deployed application" + "list-supported-cipher-suites:enables administrators to list the cipher suites that are supported and available to a specified GlassFish Server target" + "list-system-properties:lists the system properties of the domain, configuration, cluster, or server instance" + "list-threadpools:lists all the thread pools" + "list-timers:lists all of the persistent timers owned by server instance(s)" + "list-transports:lists the existing transports" + "list-virtual-servers:lists the existing virtual servers" + "list-web-context-param:lists servlet contextinitialization parameters of a deployed web application or module" + "list-web-env-entry:lists environment entries for a deployed web application or module" + "login:logs you into a domain" + "migrate-timers:moves EJB timers when a clustered instance was stopped or has crashed" + "monitor:displays monitoring data for commonly used components and services" + "multimode:allows multiple subcommands to be run while preserving environment settings and remaining in the asadmin utility" + "ping-connection-pool:tests if a connection pool is usable" + "ping-node-dcom:tests if a node that is enabled for communication over DCOM is usable" + "ping-node-ssh:tests if a node that is enabled for communication over SSH is usable" + "recover-transactions:manually recovers pending transactions" + "redeploy:redeploys the specified component" + "remove-library:removes one or more library JAR files from GlassFish Server" + "restart-domain:restarts the DAS of the specified domain" + "restart-instance:restarts a running GlassFish Server instance" + "restart-local-instance:restarts a running GlassFish Server instance on the host where the subcommand is run" + "restore-domain:restores files from backup" + "rollback-transaction:rolls back the named transaction" + "rotate-log:rotates the log file" + "set:sets the values of configurable attributes" + "set-log-attributes:sets the logging attributes for one or more loggers" + "set-log-levels:sets the log level for one or more loggers" + "set-web-context-param:sets a servlet context initialization parameter of a deployed web application or module" + "set-web-env-entry:sets an environment entry for a deployed web application or module" + "setup-ssh:sets up an SSH key on specified hosts" + "show-component-status:displays the status of the deployed component" + "start-cluster:starts a cluster" + "start-database:starts the Java DB" + "start-domain:starts the DAS of the specified domain" + "start-instance:starts a GlassFish Server instance" + "start-local-instance:starts a GlassFish Server instance on the host where the subcommand is run" + "stop-cluster:stops a GlassFish Server cluster" + "stop-database:stops the Java DB" + "stop-domain:stops the Domain Administration Server of the specified domain" + "stop-instance:stops a running GlassFish Server instance" + "stop-local-instance:stops a GlassFish Server instance on the machine where the subcommand is run" + "undeploy:removes a deployed component" + "unfreeze-transaction-service:resumes all suspended transactions" + "uninstall-node:uninstalls GlassFish Server software from specified hosts" + "uninstall-node-dcom:uninstalls GlassFish Server software from specified DCOM-enabled hosts" + "uninstall-node-ssh:uninstalls GlassFish Server software from specified SSH-enabled hosts" + "unset:removes one or more variables from the multimode environment" + "unset-web-context-param:unsets a servlet context initialization parameter of a deployed web application or module" + "unset-web-env-entry:unsets an environment entry for a deployed web application or module" + "update-connector-security-map:modifies a security map for the specified connector connection pool" + "update-connector-work-security-map:modifies a work security map for the specified resource adapter" + "update-file-user:updates a current file user as specified" + "update-node-config:updates the configuration data of anode" + "update-node-dcom:updates the configuration data of a node" + "update-node-ssh:updates the configuration data of a node" + "update-password-alias:updates a password alias" + "uptime:returns the length of time that the DAS has been running" + "validate-dcom:tests the connection over DCOM to a remote host" + "validate-multicast:validates that multicast transport is available for clusters" + "verify-domain-xml:verifies the content of the domain.xml file" + "version:displays version information forGlassFish Server" +) + +_arguments '*:: :->command' + +if (( CURRENT == 1 )); then + _describe -t commands "glassfish command" _1st_arguments + return +fi + +local -a _command_args +case "$words[1]" in + apps:info) + _command_args=( + '(-r|--raw)'{-r,--raw}'[output info as raw key/value pairs]' \ + ) + ;; + apps:create) + _command_args=( + '(-a|--addons)'{-a,--addons}'[a list of addons to install]' \ + '(-r|--remote)'{-r,--remote}'[the git remote to create, default "heroku"]' \ + '(-s|--stack)'{-s,--stack}'[the stack on which to create the app]' \ + ) + ;; + config) + _command_args=( + '(-s|--shell)'{-s,--shell}'[output config vars in shell format]' \ + ) + ;; + db:push) + _command_args=( + '(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \ + '(-d|--debug)'{-d,--debug}'[enable debugging output]' \ + '(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the push]' \ + '(-f|--filter)'{-f,--filter}'[only push certain tables]' \ + '(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \ + '(-t|--tables)'{-t,--tables}'[only push the specified tables]' \ + ) + ;; + db:pull) + _command_args=( + '(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \ + '(-d|--debug)'{-d,--debug}'[enable debugging output]' \ + '(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the pull]' \ + '(-f|--filter)'{-f,--filter}'[only pull certain tables]' \ + '(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \ + '(-t|--tables)'{-t,--tables}'[only pull the specified tables]' \ + ) + ;; + keys) + _command_args=( + '(-l|--long)'{-l,--long}'[display extended information for each key]' \ + ) + ;; + logs) + _command_args=( + '(-n|--num)'{-n,--num}'[the number of lines to display]' \ + '(-p|--ps)'{-p,--ps}'[only display logs from the given process]' \ + '(-s|--source)'{-s,--source}'[only display logs from the given source]' \ + '(-t|--tail)'{-t,--tail}'[continually stream logs]' \ + ) + ;; + pgbackups:capture) + _command_args=( + '(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \ + ) + ;; + stack) + _command_args=( + '(-a|--all)'{-a,--all}'[include deprecated stacks]' \ + ) + ;; +esac + +_arguments \ + $_command_args \ + && return 0 From d2116f355742ffe3f0c44ee865d136cb979eedea Mon Sep 17 00:00:00 2001 From: fred-o Date: Tue, 10 Jul 2012 14:57:59 +0200 Subject: [PATCH 16/36] apparently, this file must exist for the plugin to load --- plugins/glassfish/_glassfish | 1 + 1 file changed, 1 insertion(+) create mode 100644 plugins/glassfish/_glassfish diff --git a/plugins/glassfish/_glassfish b/plugins/glassfish/_glassfish new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/plugins/glassfish/_glassfish @@ -0,0 +1 @@ + From 350720eca171513a5e959d01dbeceaf15f268c5c Mon Sep 17 00:00:00 2001 From: fred-o Date: Thu, 12 Jul 2012 14:05:33 +0200 Subject: [PATCH 17/36] added completions for all known arguments to all known commands --- plugins/glassfish/_asadmin | 684 +++++++++++++++++++++++++++++++++---- 1 file changed, 624 insertions(+), 60 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index c8f62c67c..08ae9d461 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -278,66 +278,630 @@ fi local -a _command_args case "$words[1]" in - apps:info) - _command_args=( - '(-r|--raw)'{-r,--raw}'[output info as raw key/value pairs]' \ - ) - ;; - apps:create) - _command_args=( - '(-a|--addons)'{-a,--addons}'[a list of addons to install]' \ - '(-r|--remote)'{-r,--remote}'[the git remote to create, default "heroku"]' \ - '(-s|--stack)'{-s,--stack}'[the stack on which to create the app]' \ - ) - ;; - config) - _command_args=( - '(-s|--shell)'{-s,--shell}'[output config vars in shell format]' \ - ) - ;; - db:push) - _command_args=( - '(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \ - '(-d|--debug)'{-d,--debug}'[enable debugging output]' \ - '(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the push]' \ - '(-f|--filter)'{-f,--filter}'[only push certain tables]' \ - '(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \ - '(-t|--tables)'{-t,--tables}'[only push the specified tables]' \ - ) - ;; - db:pull) - _command_args=( - '(-c|--chunksize)'{-c,--chunksize}'[specify the number of rows to send in each batch]' \ - '(-d|--debug)'{-d,--debug}'[enable debugging output]' \ - '(-e|--exclude)'{-e,--exclude}'[exclude the specified tables from the pull]' \ - '(-f|--filter)'{-f,--filter}'[only pull certain tables]' \ - '(-r|--resume)'{-r,--resume}'[resume transfer described by a .dat file]' \ - '(-t|--tables)'{-t,--tables}'[only pull the specified tables]' \ - ) - ;; - keys) - _command_args=( - '(-l|--long)'{-l,--long}'[display extended information for each key]' \ - ) - ;; - logs) - _command_args=( - '(-n|--num)'{-n,--num}'[the number of lines to display]' \ - '(-p|--ps)'{-p,--ps}'[only display logs from the given process]' \ - '(-s|--source)'{-s,--source}'[only display logs from the given source]' \ - '(-t|--tail)'{-t,--tail}'[continually stream logs]' \ - ) - ;; - pgbackups:capture) - _command_args=( - '(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \ - ) - ;; - stack) - _command_args=( - '(-a|--all)'{-a,--all}'[include deprecated stacks]' \ - ) - ;; + add-library) + _command_args=('--type') + ;; + add-resources) + _command_args=('--target') + ;; + apply-http-lb-changes) + _command_args=('--ping') + ;; + backup-domain) + _command_args=('--backupconfig' '--backupdir' '--description' '--domaindir' '--long') + ;; + change-admin-password) + _command_args=('--domain_name' '--domaindir') + ;; + change-master-password) + _command_args=('--domaindir' '--nodedir' '--savemasterpassword') + ;; + collect-log-files) + _command_args=('--retrieve' '--target') + ;; + configure-jms-cluster) + _command_args=('--clustertype' '--configstoretype' '--dburl' '--dbuser' '--dbvendor' '--jmsdbpassword' '--messagestoretype' '--property') + ;; + configure-lb-weight) + _command_args=('--cluster') + ;; + configure-ldap-for-admin) + _command_args=('--basedn' '--ldap-group' '--target' '--url') + ;; + copy-config) + _command_args=('--systemproperties') + ;; + create-admin-object) + _command_args=('--classname' '--description' '--enabled' '--property' '--raname' '--restype' '--target') + ;; + create-application-ref) + _command_args=('--enabled' '--lbenabled' '--target' '--virtualservers') + ;; + create-audit-module) + _command_args=('--classname' '--property' '--target') + ;; + create-auth-realm) + _command_args=('--classname' '--property' '--target') + ;; + create-connector-connection-pool) + _command_args=('--associatewiththread' '--connectiondefinition' '--creationretryattempts' '--creationretryinterval' '--description' '--failconnection' '--idletimeout' '--isconnectvalidatereq' '--lazyconnectionassociation' '--lazyconnectionenlistment' '--leakreclaim' '--leaktimeout' '--matchconnections' '--maxconnectionusagecount' '--maxpoolsize' '--maxwait' '--ping' '--pooling' '--poolresize' '--property' '--raname' '--steadypoolsize' '--target' '--transactionsupport' '--validateatmostonceperiod') + ;; + create-connector-resource) + _command_args=('--description' '--enabled' '--objecttype' '--poolname' '--property' '--target') + ;; + create-connector-security-map) + _command_args=('--mappedpassword' '--mappedusername' '--poolname' '--principals' '--target' '--usergroups') + ;; + create-connector-work-security-map) + _command_args=('--description' '--groupsmap' '--principalsmap' '--raname') + ;; + create-custom-resource) + _command_args=('--description' '--enabled' '--factoryclass' '--property' '--restype' '--target') + ;; + create-domain) + _command_args=('--adminport' '--checkports' '--domaindir' '--domainproperties' '--instanceport' '--keytooloptions' '--nopassword' '--portbase' '--profile' '--savelogin' '--savemasterpassword' '--template' '--usemasterpassword') + ;; + create-file-user) + _command_args=('--authrealmname' '--groups' '--target' '--userpassword') + ;; + create-http) + _command_args=('--default-virtual-server' '--dns-lookup-enabled' '--max-connection' '--request-timeout-seconds' '--servername' '--target' '--timeout-seconds' '--xpowered') + ;; + create-http-health-checker) + _command_args=('--config' '--interval' '--timeout' '--url') + ;; + create-http-lb) + _command_args=('--autoapplyenabled' '--devicehost' '--deviceport' '--healthcheckerinterval' '--healthcheckertimeout' '--healthcheckerurl' '--httpsrouting' '--lbenableallapplications' '--lbenableallinstances' '--lbpolicy' '--lbpolicymodule' '--lbweight' '--monitor' '--property' '--reloadinterval' '--responsetimeout' '--routecookie' '--sslproxyhost' '--sslproxyport' '--target') + ;; + create-http-lb-ref) + _command_args=('--config' '--healthcheckerinterval' '--healthcheckertimeout' '--healthcheckerurl' '--lbenableallapplications' '--lbenableallinstances' '--lbname' '--lbpolicy' '--lbpolicymodule' '--lbweight') + ;; + create-http-listener) + _command_args=('--acceptorthreads' '--default-virtual-server' '--defaultvs' '--enabled' '--listeneraddress' '--listenerport' '--redirectport' '--secure' '--securityenabled' '--servername' '--target' '--xpowered') + ;; + create-http-redirect) + _command_args=('--redirect-port' '--secure-redirect' '--target') + ;; + create-iiop-listener) + _command_args=('--enabled' '--iiopport' '--listeneraddress' '--property' '--securityenabled' '--target') + ;; + create-instance) + _command_args=('--checkports' '--cluster' '--config' '--lbenabled' '--node' '--portbase' '--systemproperties' '--terse') + ;; + create-jacc-provider) + _command_args=('--policyconfigfactoryclass' '--policyproviderclass' '--property' '--target') + ;; + create-javamail-resource) + _command_args=('--debug' '--description' '--enabled' '--fromaddress' '--mailhost' '--mailuser' '--property' '--storeprotocol' '--storeprotocolclass' '--target' '--transprotocol' '--transprotocolclass') + ;; + create-jdbc-connection-pool) + _command_args=('--allownoncomponentcallers' '--associatewiththread' '--creationretryattempts' '--creationretryinterval' '--datasourceclassname' '--description' '--driverclassname' '--failconnection' '--idletimeout' '--initsql' '--isconnectvalidatereq' '--isisolationguaranteed' '--isolationlevel' '--lazyconnectionassociation' '--lazyconnectionenlistment' '--leakreclaim' '--leaktimeout' '--matchconnections' '--maxconnectionusagecount' '--maxpoolsize' '--maxwait' '--nontransactionalconnections' '--ping' '--pooling' '--poolresize' '--property' '--restype' '--sqltracelisteners' '--statementcachesize' '--statementleakreclaim' '--statementleaktimeout' '--statementtimeout' '--steadypoolsize' '--target' '--validateatmostonceperiod' '--validationclassname' '--validationmethod' '--validationtable' '--wrapjdbcobjects') + ;; + create-jdbc-resource) + _command_args=('--connectionpoolid' '--description' '--enabled' '--property' '--target') + ;; + create-jms-host) + _command_args=('--mqhost' '--mqpassword' '--mqport' '--mquser' '--property' '--target') + ;; + create-jms-resource) + _command_args=('--description' '--enabled' '--property' '--restype' '--target') + ;; + create-jmsdest) + _command_args=('--desttype' '--property' '--target') + ;; + create-jndi-resource) + _command_args=('--description' '--enabled' '--factoryclass' '--jndilookupname' '--property' '--restype' '--target') + ;; + create-jvm-options) + _command_args=('--profiler' '--target') + ;; + create-lifecycle-module) + _command_args=('--classname' '--classpath' '--description' '--enabled' '--failurefatal' '--loadorder' '--property' '--target') + ;; + create-local-instance) + _command_args=('--checkports' '--cluster' '--config' '--lbenabled' '--node' '--nodedir' '--portbase' '--savemasterpassword' '--systemproperties' '--usemasterpassword') + ;; + create-message-security-provider) + _command_args=('--classname' '--isdefaultprovider' '--layer' '--property' '--providertype' '--requestauthrecipient' '--requestauthsource' '--responseauthrecipient' '--responseauthsource' '--target') + ;; + create-network-listener) + _command_args=('--address' '--enabled' '--jkenabled' '--listenerport' '--protocol' '--target' '--threadpool' '--transport') + ;; + create-node-config) + _command_args=('--installdir' '--nodedir' '--nodehost') + ;; + create-node-dcom) + _command_args=('--archive' '--force' '--install' '--installdir' '--nodedir' '--nodehost' '--windowsdomain' '--windowspassword' '--windowsuser') + ;; + create-node-ssh) + _command_args=('--archive' '--force' '--install' '--installdir' '--nodedir' '--nodehost' '--sshkeyfile' '--sshkeypassphrase' '--sshpassword' '--sshport' '--sshuser') + ;; + create-password-alias) + _command_args=('--aliaspassword') + ;; + create-profiler) + _command_args=('--classpath' '--enabled' '--nativelibrarypath' '--property' '--target') + ;; + create-protocol) + _command_args=('--securityenabled' '--target') + ;; + create-protocol-filter) + _command_args=('--classname' '--protocol' '--target') + ;; + create-protocol-finder) + _command_args=('--classname' '--protocol' '--target' '--targetprotocol') + ;; + create-resource-adapter-config) + _command_args=('--objecttype' '--property' '--target' '--threadpoolid') + ;; + create-resource-ref) + _command_args=('--enabled' '--target') + ;; + create-service) + _command_args=('--domaindir' '--dry-run' '--force' '--name' '--node' '--nodedir' '--serviceproperties' '--serviceuser') + ;; + create-ssl) + _command_args=('--certname' '--clientauthenabled' '--ssl2ciphers' '--ssl2enabled' '--ssl3enabled' '--ssl3tlsciphers' '--target' '--tlsenabled' '--tlsrollbackenabled' '--type') + ;; + create-system-properties) + _command_args=('--target') + ;; + create-threadpool) + _command_args=('--idletimeout' '--maxqueuesize' '--maxthreadpoolsize' '--minthreadpoolsize' '--target' '--workqueues') + ;; + create-transport) + _command_args=('--acceptorthreads' '--buffersizebytes' '--bytebuffertype' '--classname' '--displayconfiguration' '--enablesnoop' '--idlekeytimeoutseconds' '--maxconnectionscount' '--readtimeoutmillis' '--selectionkeyhandler' '--selectorpolltimeoutmillis' '--target' '--tcpnodelay' '--writetimeoutmillis') + ;; + create-virtual-server) + _command_args=('--defaultwebmodule' '--hosts' '--httplisteners' '--logfile' '--networklisteners' '--property' '--state' '--target') + ;; + delete-admin-object) + _command_args=('--target') + ;; + delete-application-ref) + _command_args=('--cascade' '--target') + ;; + delete-audit-module) + _command_args=('--target') + ;; + delete-auth-realm) + _command_args=('--target') + ;; + delete-connector-connection-pool) + _command_args=('--cascade' '--target') + ;; + delete-connector-resource) + _command_args=('--target') + ;; + delete-connector-security-map) + _command_args=('--poolname' '--target') + ;; + delete-connector-work-security-map) + _command_args=('--raname') + ;; + delete-custom-resource) + _command_args=('--target') + ;; + delete-domain) + _command_args=('--domaindir') + ;; + delete-file-user) + _command_args=('--authrealmname' '--target') + ;; + delete-http) + _command_args=('--target') + ;; + delete-http-health-checker) + _command_args=('--config') + ;; + delete-http-lb-ref) + _command_args=('--config' '--force' '--lbname') + ;; + delete-http-listener) + _command_args=('--secure' '--target') + ;; + delete-http-redirect) + _command_args=('--target') + ;; + delete-iiop-listener) + _command_args=('--target') + ;; + delete-instance) + _command_args=('--terse') + ;; + delete-jacc-provider) + _command_args=('--target') + ;; + delete-javamail-resource) + _command_args=('--target') + ;; + delete-jdbc-connection-pool) + _command_args=('--cascade' '--target') + ;; + delete-jdbc-resource) + _command_args=('--target') + ;; + delete-jms-host) + _command_args=('--target') + ;; + delete-jms-resource) + _command_args=('--target') + ;; + delete-jmsdest) + _command_args=('--desttype' '--target') + ;; + delete-jndi-resource) + _command_args=('--target') + ;; + delete-jvm-options) + _command_args=('--profiler' '--target') + ;; + delete-lifecycle-module) + _command_args=('--target') + ;; + delete-local-instance) + _command_args=('--node' '--nodedir') + ;; + delete-log-levels) + _command_args=('--target') + ;; + delete-message-security-provider) + _command_args=('--layer' '--target') + ;; + delete-network-listener) + _command_args=('--target') + ;; + delete-profiler) + _command_args=('--target') + ;; + delete-protocol) + _command_args=('--target') + ;; + delete-protocol-filter) + _command_args=('--protocol' '--target') + ;; + delete-protocol-finder) + _command_args=('--protocol' '--target') + ;; + delete-resource-adapter-config) + _command_args=('--target') + ;; + delete-resource-ref) + _command_args=('--target') + ;; + delete-ssl) + _command_args=('--target' '--type') + ;; + delete-system-property) + _command_args=('--target') + ;; + delete-threadpool) + _command_args=('--target') + ;; + delete-transport) + _command_args=('--target') + ;; + delete-virtual-server) + _command_args=('--target') + ;; + deploy) + _command_args=('--asyncreplication' '--availabilityenabled' '--contextroot' '--createtables' '--dbvendorname' '--deploymentplan' '--description' '--dropandcreatetables' '--enabled' '--force' '--generatermistubs' '--isredeploy' '--keepfailedstubs' '--keepreposdir' '--keepstate' '--lbenabled' '--libraries' '--logreportederrors' '--name' '--precompilejsp' '--properties' '--property' '--retrieve' '--target' '--type' '--uniquetablenames' '--verify' '--virtualservers') + ;; + deploydir) + _command_args=('--asyncreplication' '--availabilityenabled' '--contextroot' '--createtables' '--dbvendorname' '--deploymentplan' '--description' '--dropandcreatetables' '--enabled' '--force' '--generatermistubs' '--isredeploy' '--keepfailedstubs' '--keepreposdir' '--keepstate' '--lbenabled' '--libraries' '--logreportederrors' '--name' '--precompilejsp' '--properties' '--property' '--retrieve' '--target' '--type' '--uniquetablenames' '--verify' '--virtualservers') + ;; + disable) + _command_args=('--cascade' '--droptables' '--isredeploy' '--isundeploy' '--keepreposdir' '--keepstate' '--properties' '--target') + ;; + disable-http-lb-application) + _command_args=('--name' '--timeout') + ;; + disable-http-lb-server) + _command_args=('--timeout') + ;; + disable-monitoring) + _command_args=('--modules' '--target') + ;; + enable) + _command_args=('--target') + ;; + enable-http-lb-application) + _command_args=('--name') + ;; + enable-monitoring) + _command_args=('--dtrace' '--mbean' '--modules' '--options' '--pid' '--target') + ;; + enable-secure-admin) + _command_args=('--adminalias' '--instancealias') + ;; + export-http-lb-config) + _command_args=('--config' '--lbname' '--lbtargets' '--property' '--retrievefile') + ;; + export-sync-bundle) + _command_args=('--retrieve' '--target') + ;; + flush-connection-pool) + _command_args=('--appname' '--modulename') + ;; + flush-jmsdest) + _command_args=('--desttype' '--target') + ;; + freeze-transaction-service) + _command_args=('--target') + ;; + generate-domain-schema) + _command_args=('--format' '--showdeprecated' '--showsubclasses') + ;; + generate-jvm-report) + _command_args=('--target' '--type') + ;; + get) + _command_args=('--monitor') + ;; + get-client-stubs) + _command_args=('--appname') + ;; + import-sync-bundle) + _command_args=('--instance' '--node' '--nodedir') + ;; + install-node-dcom) + _command_args=('--archive' '--create' '--force' '--installdir' '--save' '--windowsdomain' '--windowsuser') + ;; + install-node-ssh) + _command_args=('--archive' '--create' '--force' '--installdir' '--save' '--sshkeyfile' '--sshport' '--sshuser') + ;; + jms-ping) + _command_args=('--target') + ;; + list) + _command_args=('--monitor') + ;; + list-application-refs) + _command_args=('--long' '--terse') + ;; + list-backups) + _command_args=('--backupconfig' '--backupdir' '--domaindir' '--long') + ;; + list-commands) + _command_args=('--localonly' '--remoteonly') + ;; + list-components) + _command_args=('--long' '--resources' '--subcomponents' '--terse' '--type') + ;; + list-connector-security-maps) + _command_args=('--long' '--securitymap' '--target') + ;; + list-connector-work-security-maps) + _command_args=('--securitymap') + ;; + list-custom-resources) + _command_args=('--target') + ;; + list-domains) + _command_args=('--domaindir') + ;; + list-file-groups) + _command_args=('--authrealmname' '--name') + ;; + list-file-users) + _command_args=('--authrealmname') + ;; + list-http-listeners) + _command_args=('--long') + ;; + list-instances) + _command_args=('--long' '--nostatus' '--standaloneonly' '--timeoutmsec') + ;; + list-javamail-resources) + _command_args=('--target') + ;; + list-jms-hosts) + _command_args=('--target') + ;; + list-jms-resources) + _command_args=('--restype') + ;; + list-jmsdest) + _command_args=('--desttype' '--property') + ;; + list-jndi-entries) + _command_args=('--context') + ;; + list-jndi-resources) + _command_args=('--target') + ;; + list-jvm-options) + _command_args=('--profiler' '--target') + ;; + list-libraries) + _command_args=('--type') + ;; + list-lifecycle-modules) + _command_args=('--terse') + ;; + list-message-security-providers) + _command_args=('--layer') + ;; + list-nodes) + _command_args=('--long' '--terse') + ;; + list-nodes-config) + _command_args=('--long' '--terse') + ;; + list-nodes-dcom) + _command_args=('--long' '--terse') + ;; + list-nodes-ssh) + _command_args=('--long' '--terse') + ;; + list-persistence-types) + _command_args=('--type') + ;; + list-protocol-filters) + _command_args=('--target') + ;; + list-protocol-finders) + _command_args=('--target') + ;; + list-resource-adapter-configs) + _command_args=('--long' '--raname') + ;; + list-sub-components) + _command_args=('--appname' '--resources' '--terse' '--type') + ;; + list-virtual-servers) + _command_args=('--target') + ;; + list-web-context-param) + _command_args=('--name') + ;; + list-web-env-entry) + _command_args=('--name') + ;; + login) + _command_args=('--target') + ;; + migrate-timers) + _command_args=('--target') + ;; + monitor) + _command_args=('--filename' '--filter' '--interval' '--type') + ;; + multimode) + _command_args=('--encoding' '--file' '--printprompt') + ;; + ping-connection-pool) + _command_args=('--appname' '--modulename' '--target') + ;; + recover-transactions) + _command_args=('--target' '--transactionlogdir') + ;; + redeploy) + _command_args=('--asyncreplication' '--availabilityenabled' '--contextroot' '--createtables' '--dbvendorname' '--deploymentplan' '--description' '--dropandcreatetables' '--enabled' '--force' '--generatermistubs' '--isredeploy' '--keepfailedstubs' '--keepreposdir' '--keepstate' '--lbenabled' '--libraries' '--logreportederrors' '--name' '--precompilejsp' '--properties' '--property' '--retrieve' '--target' '--type' '--uniquetablenames' '--verify' '--virtualservers') + ;; + remove-library) + _command_args=('--type') + ;; + restart-domain) + _command_args=('--debug' '--domaindir' '--force' '--kill') + ;; + restart-instance) + _command_args=('--debug') + ;; + restart-local-instance) + _command_args=('--debug' '--force' '--kill' '--node' '--nodedir') + ;; + restore-domain) + _command_args=('--backupconfig' '--backupdir' '--description' '--domaindir' '--filename' '--force' '--long') + ;; + rollback-transaction) + _command_args=('--target' '--transaction_id') + ;; + rotate-log) + _command_args=('--target') + ;; + set-log-attributes) + _command_args=('--target') + ;; + set-log-levels) + _command_args=('--target') + ;; + set-web-context-param) + _command_args=('--description' '--ignoredescriptoritem' '--name' '--value') + ;; + set-web-env-entry) + _command_args=('--description' '--ignoredescriptoritem' '--name' '--type' '--value') + ;; + setup-ssh) + _command_args=('--generatekey' '--sshkeyfile' '--sshport' '--sshpublickeyfile' '--sshuser') + ;; + show-component-status) + _command_args=('--target') + ;; + start-cluster) + _command_args=('--autohadboverride' '--verbose') + ;; + start-database) + _command_args=('--dbhome' '--dbhost' '--dbport' '--jvmoptions') + ;; + start-domain) + _command_args=('--debug' '--domaindir' '--upgrade' '--verbose') + ;; + start-instance) + _command_args=('--debug' '--setenv' '--sync' '--terse') + ;; + start-local-instance) + _command_args=('--debug' '--node' '--nodedir' '--sync' '--verbose') + ;; + stop-cluster) + _command_args=('--autohadboverride' '--kill' '--verbose') + ;; + stop-database) + _command_args=('--dbhost' '--dbport' '--dbuser') + ;; + stop-domain) + _command_args=('--domaindir' '--force' '--kill') + ;; + stop-instance) + _command_args=('--force' '--kill') + ;; + stop-local-instance) + _command_args=('--force' '--kill' '--node' '--nodedir') + ;; + undeploy) + _command_args=('--cascade' '--droptables' '--isredeploy' '--keepreposdir' '--keepstate' '--properties' '--target') + ;; + unfreeze-transaction-service) + _command_args=('--target') + ;; + uninstall-node-dcom) + _command_args=('--force' '--installdir' '--windowsdomain' '--windowsuser') + ;; + uninstall-node-ssh) + _command_args=('--force' '--installdir' '--sshkeyfile' '--sshport' '--sshuser') + ;; + unset-web-context-param) + _command_args=('--name') + ;; + unset-web-env-entry) + _command_args=('--name') + ;; + update-connector-security-map) + _command_args=('--addprincipals' '--addusergroups' '--mappedpassword' '--mappedusername' '--poolname' '--removeprincipals' '--removeusergroups' '--target') + ;; + update-connector-work-security-map) + _command_args=('--addgroups' '--addprincipals' '--raname' '--removegroups' '--removeprincipals') + ;; + update-file-user) + _command_args=('--authrealmname' '--groups' '--target' '--userpassword') + ;; + update-node-config) + _command_args=('--installdir' '--nodedir' '--nodehost') + ;; + update-node-dcom) + _command_args=('--force' '--installdir' '--nodedir' '--nodehost' '--windowsdomain' '--windowspassword' '--windowsuser') + ;; + update-node-ssh) + _command_args=('--force' '--installdir' '--nodedir' '--nodehost' '--sshkeyfile' '--sshkeypassphrase' '--sshpassword' '--sshport' '--sshuser') + ;; + update-password-alias) + _command_args=('--aliaspassword') + ;; + uptime) + _command_args=('--milliseconds') + ;; + validate-dcom) + _command_args=('--remotetestdir' '--verbose' '--windowsdomain' '--windowspassword' '--windowsuser') + ;; + validate-multicast) + _command_args=('--bindaddress' '--multicastaddress' '--multicastport' '--sendperiod' '--timeout' '--timetolive' '--verbose') + ;; + verify-domain-xml) + _command_args=('--domaindir') + ;; + version) + _command_args=('--local' '--terse' '--verbose') + ;; esac _arguments \ From df176fb3dcdc036ecd6165beea47e64e307ea978 Mon Sep 17 00:00:00 2001 From: fred-o Date: Thu, 12 Jul 2012 14:17:59 +0200 Subject: [PATCH 18/36] added alias --- plugins/glassfish/_glassfish | 1 - plugins/glassfish/glassfish.plugin.zsh | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 plugins/glassfish/_glassfish create mode 100644 plugins/glassfish/glassfish.plugin.zsh diff --git a/plugins/glassfish/_glassfish b/plugins/glassfish/_glassfish deleted file mode 100644 index 8b1378917..000000000 --- a/plugins/glassfish/_glassfish +++ /dev/null @@ -1 +0,0 @@ - diff --git a/plugins/glassfish/glassfish.plugin.zsh b/plugins/glassfish/glassfish.plugin.zsh new file mode 100644 index 000000000..49ca23299 --- /dev/null +++ b/plugins/glassfish/glassfish.plugin.zsh @@ -0,0 +1,3 @@ +# if there is a user named 'glassfish' on the system, we'll assume +# that is the user asadmin should be run as +grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin' \ No newline at end of file From 4caea1f7e143ac84583618cf8d2109212ba6909a Mon Sep 17 00:00:00 2001 From: fred-o Date: Fri, 13 Jul 2012 12:08:41 +0200 Subject: [PATCH 19/36] completion options --- plugins/glassfish/_asadmin | 418 ++++++++++++++++++------------------- 1 file changed, 209 insertions(+), 209 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index 08ae9d461..f0ebea9f2 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -272,635 +272,635 @@ _1st_arguments=( _arguments '*:: :->command' if (( CURRENT == 1 )); then - _describe -t commands "glassfish command" _1st_arguments + _describe -t commands "asadmin command" _1st_arguments return fi local -a _command_args case "$words[1]" in add-library) - _command_args=('--type') + _command_args=('--type+:type:(common ext app)') ;; add-resources) - _command_args=('--target') + _command_args=('--target+:') ;; apply-http-lb-changes) - _command_args=('--ping') + _command_args=('--ping+:') ;; backup-domain) - _command_args=('--backupconfig' '--backupdir' '--description' '--domaindir' '--long') + _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--long+:long:(true false)') ;; change-admin-password) - _command_args=('--domain_name' '--domaindir') + _command_args=('--domain_name+:' '--domaindir+:') ;; change-master-password) - _command_args=('--domaindir' '--nodedir' '--savemasterpassword') + _command_args=('--domaindir+:' '--nodedir+:' '--savemasterpassword+:savemasterpassword:(true false)') ;; collect-log-files) - _command_args=('--retrieve' '--target') + _command_args=('--retrieve+:retrieve:(true false)' '--target+:') ;; configure-jms-cluster) - _command_args=('--clustertype' '--configstoretype' '--dburl' '--dbuser' '--dbvendor' '--jmsdbpassword' '--messagestoretype' '--property') + _command_args=('--clustertype+:' '--configstoretype+:' '--dburl+:' '--dbuser+:' '--dbvendor+:' '--jmsdbpassword+:' '--messagestoretype+:' '--property+:') ;; configure-lb-weight) - _command_args=('--cluster') + _command_args=('--cluster+:') ;; configure-ldap-for-admin) - _command_args=('--basedn' '--ldap-group' '--target' '--url') + _command_args=('--basedn+:' '--ldap-group+:' '--target+:' '--url+:') ;; copy-config) - _command_args=('--systemproperties') + _command_args=('--systemproperties+:') ;; create-admin-object) - _command_args=('--classname' '--description' '--enabled' '--property' '--raname' '--restype' '--target') + _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--property+:' '--raname+:' '--restype+:' '--target+:') ;; create-application-ref) - _command_args=('--enabled' '--lbenabled' '--target' '--virtualservers') + _command_args=('--enabled+:enabled:(true false)' '--lbenabled+:lbenabled:(true false)' '--target+:' '--virtualservers+:') ;; create-audit-module) - _command_args=('--classname' '--property' '--target') + _command_args=('--classname+:' '--property+:' '--target+:') ;; create-auth-realm) - _command_args=('--classname' '--property' '--target') + _command_args=('--classname+:' '--property+:' '--target+:') ;; create-connector-connection-pool) - _command_args=('--associatewiththread' '--connectiondefinition' '--creationretryattempts' '--creationretryinterval' '--description' '--failconnection' '--idletimeout' '--isconnectvalidatereq' '--lazyconnectionassociation' '--lazyconnectionenlistment' '--leakreclaim' '--leaktimeout' '--matchconnections' '--maxconnectionusagecount' '--maxpoolsize' '--maxwait' '--ping' '--pooling' '--poolresize' '--property' '--raname' '--steadypoolsize' '--target' '--transactionsupport' '--validateatmostonceperiod') + _command_args=('--associatewiththread+:associatewiththread:(true false)' '--connectiondefinition+:' '--creationretryattempts+:' '--creationretryinterval+:' '--description+:' '--failconnection+:failconnection:(true false)' '--idletimeout+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--property+:' '--raname+:' '--steadypoolsize+:' '--target+:' '--transactionsupport+:transactionsupport:(XATransaction LocalTransaction NoTransaction)' '--validateatmostonceperiod+:') ;; create-connector-resource) - _command_args=('--description' '--enabled' '--objecttype' '--poolname' '--property' '--target') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--objecttype+:' '--poolname+:' '--property+:' '--target+:') ;; create-connector-security-map) - _command_args=('--mappedpassword' '--mappedusername' '--poolname' '--principals' '--target' '--usergroups') + _command_args=('--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--principals+:' '--target+:' '--usergroups+:') ;; create-connector-work-security-map) - _command_args=('--description' '--groupsmap' '--principalsmap' '--raname') + _command_args=('--description+:' '--groupsmap+:' '--principalsmap+:' '--raname+:') ;; create-custom-resource) - _command_args=('--description' '--enabled' '--factoryclass' '--property' '--restype' '--target') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--property+:' '--restype+:' '--target+:') ;; create-domain) - _command_args=('--adminport' '--checkports' '--domaindir' '--domainproperties' '--instanceport' '--keytooloptions' '--nopassword' '--portbase' '--profile' '--savelogin' '--savemasterpassword' '--template' '--usemasterpassword') + _command_args=('--adminport+:' '--checkports+:checkports:(true false)' '--domaindir+:' '--domainproperties+:' '--instanceport+:' '--keytooloptions+:' '--nopassword+:nopassword:(true false)' '--portbase+:' '--profile+:' '--savelogin+:savelogin:(true false)' '--savemasterpassword+:savemasterpassword:(true false)' '--template+:' '--usemasterpassword+:usemasterpassword:(true false)') ;; create-file-user) - _command_args=('--authrealmname' '--groups' '--target' '--userpassword') + _command_args=('--authrealmname+:' '--groups+:' '--target+:' '--userpassword+:') ;; create-http) - _command_args=('--default-virtual-server' '--dns-lookup-enabled' '--max-connection' '--request-timeout-seconds' '--servername' '--target' '--timeout-seconds' '--xpowered') + _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--max-connection+:' '--request-timeout-seconds+:' '--servername+:' '--target+:' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)') ;; create-http-health-checker) - _command_args=('--config' '--interval' '--timeout' '--url') + _command_args=('--config+:' '--interval+:' '--timeout+:' '--url+:') ;; create-http-lb) - _command_args=('--autoapplyenabled' '--devicehost' '--deviceport' '--healthcheckerinterval' '--healthcheckertimeout' '--healthcheckerurl' '--httpsrouting' '--lbenableallapplications' '--lbenableallinstances' '--lbpolicy' '--lbpolicymodule' '--lbweight' '--monitor' '--property' '--reloadinterval' '--responsetimeout' '--routecookie' '--sslproxyhost' '--sslproxyport' '--target') + _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:') ;; create-http-lb-ref) - _command_args=('--config' '--healthcheckerinterval' '--healthcheckertimeout' '--healthcheckerurl' '--lbenableallapplications' '--lbenableallinstances' '--lbname' '--lbpolicy' '--lbpolicymodule' '--lbweight') + _command_args=('--config+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbname+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:') ;; create-http-listener) - _command_args=('--acceptorthreads' '--default-virtual-server' '--defaultvs' '--enabled' '--listeneraddress' '--listenerport' '--redirectport' '--secure' '--securityenabled' '--servername' '--target' '--xpowered') + _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--listeneraddress+:' '--listenerport+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:' '--xpowered+:xpowered:(true false)') ;; create-http-redirect) - _command_args=('--redirect-port' '--secure-redirect' '--target') + _command_args=('--redirect-port+:' '--secure-redirect+:' '--target+:') ;; create-iiop-listener) - _command_args=('--enabled' '--iiopport' '--listeneraddress' '--property' '--securityenabled' '--target') + _command_args=('--enabled+:enabled:(true false)' '--iiopport+:' '--listeneraddress+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:') ;; create-instance) - _command_args=('--checkports' '--cluster' '--config' '--lbenabled' '--node' '--portbase' '--systemproperties' '--terse') + _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)') ;; create-jacc-provider) - _command_args=('--policyconfigfactoryclass' '--policyproviderclass' '--property' '--target') + _command_args=('--policyconfigfactoryclass+:' '--policyproviderclass+:' '--property+:' '--target+:') ;; create-javamail-resource) - _command_args=('--debug' '--description' '--enabled' '--fromaddress' '--mailhost' '--mailuser' '--property' '--storeprotocol' '--storeprotocolclass' '--target' '--transprotocol' '--transprotocolclass') + _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--mailhost+:' '--mailuser+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:' '--transprotocol+:' '--transprotocolclass+:') ;; create-jdbc-connection-pool) - _command_args=('--allownoncomponentcallers' '--associatewiththread' '--creationretryattempts' '--creationretryinterval' '--datasourceclassname' '--description' '--driverclassname' '--failconnection' '--idletimeout' '--initsql' '--isconnectvalidatereq' '--isisolationguaranteed' '--isolationlevel' '--lazyconnectionassociation' '--lazyconnectionenlistment' '--leakreclaim' '--leaktimeout' '--matchconnections' '--maxconnectionusagecount' '--maxpoolsize' '--maxwait' '--nontransactionalconnections' '--ping' '--pooling' '--poolresize' '--property' '--restype' '--sqltracelisteners' '--statementcachesize' '--statementleakreclaim' '--statementleaktimeout' '--statementtimeout' '--steadypoolsize' '--target' '--validateatmostonceperiod' '--validationclassname' '--validationmethod' '--validationtable' '--wrapjdbcobjects') + _command_args=('--allownoncomponentcallers+:allownoncomponentcallers:(true false)' '--associatewiththread+:associatewiththread:(true false)' '--creationretryattempts+:' '--creationretryinterval+:' '--datasourceclassname+:' '--description+:' '--driverclassname+:' '--failconnection+:failconnection:(true false)' '--idletimeout+:' '--initsql+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--isisolationguaranteed+:isisolationguaranteed:(true false)' '--isolationlevel+:' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--nontransactionalconnections+:nontransactionalconnections:(true false)' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--property+:' '--restype+:restype:(javax.sql.DataSource javax.sql.XADataSource javax.sql.ConnectionPoolDataSource java.sql.Driver)' '--sqltracelisteners+:' '--statementcachesize+:' '--statementleakreclaim+:statementleakreclaim:(true false)' '--statementleaktimeout+:' '--statementtimeout+:' '--steadypoolsize+:' '--target+:' '--validateatmostonceperiod+:' '--validationclassname+:' '--validationmethod+:validationmethod:(auto-commit meta-data table custom-validation)' '--validationtable+:' '--wrapjdbcobjects+:wrapjdbcobjects:(true false)') ;; create-jdbc-resource) - _command_args=('--connectionpoolid' '--description' '--enabled' '--property' '--target') + _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--property+:' '--target+:') ;; create-jms-host) - _command_args=('--mqhost' '--mqpassword' '--mqport' '--mquser' '--property' '--target') + _command_args=('--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--property+:' '--target+:') ;; create-jms-resource) - _command_args=('--description' '--enabled' '--property' '--restype' '--target') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--property+:' '--restype+:' '--target+:') ;; create-jmsdest) - _command_args=('--desttype' '--property' '--target') + _command_args=('--desttype+:' '--property+:' '--target+:') ;; create-jndi-resource) - _command_args=('--description' '--enabled' '--factoryclass' '--jndilookupname' '--property' '--restype' '--target') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--jndilookupname+:' '--property+:' '--restype+:' '--target+:') ;; create-jvm-options) - _command_args=('--profiler' '--target') + _command_args=('--profiler+:profiler:(true false)' '--target+:') ;; create-lifecycle-module) - _command_args=('--classname' '--classpath' '--description' '--enabled' '--failurefatal' '--loadorder' '--property' '--target') + _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--loadorder+:' '--property+:' '--target+:') ;; create-local-instance) - _command_args=('--checkports' '--cluster' '--config' '--lbenabled' '--node' '--nodedir' '--portbase' '--savemasterpassword' '--systemproperties' '--usemasterpassword') + _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)') ;; create-message-security-provider) - _command_args=('--classname' '--isdefaultprovider' '--layer' '--property' '--providertype' '--requestauthrecipient' '--requestauthsource' '--responseauthrecipient' '--responseauthsource' '--target') + _command_args=('--classname+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:') ;; create-network-listener) - _command_args=('--address' '--enabled' '--jkenabled' '--listenerport' '--protocol' '--target' '--threadpool' '--transport') + _command_args=('--address+:' '--enabled+:enabled:(true false)' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--protocol+:' '--target+:' '--threadpool+:' '--transport+:') ;; create-node-config) - _command_args=('--installdir' '--nodedir' '--nodehost') + _command_args=('--installdir+:' '--nodedir+:' '--nodehost+:') ;; create-node-dcom) - _command_args=('--archive' '--force' '--install' '--installdir' '--nodedir' '--nodehost' '--windowsdomain' '--windowspassword' '--windowsuser') + _command_args=('--archive+:' '--force+:force:(true false)' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') ;; create-node-ssh) - _command_args=('--archive' '--force' '--install' '--installdir' '--nodedir' '--nodehost' '--sshkeyfile' '--sshkeypassphrase' '--sshpassword' '--sshport' '--sshuser') + _command_args=('--archive+:' '--force+:force:(true false)' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') ;; create-password-alias) - _command_args=('--aliaspassword') + _command_args=('--aliaspassword+:') ;; create-profiler) - _command_args=('--classpath' '--enabled' '--nativelibrarypath' '--property' '--target') + _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--nativelibrarypath+:' '--property+:' '--target+:') ;; create-protocol) - _command_args=('--securityenabled' '--target') + _command_args=('--securityenabled+:securityenabled:(true false)' '--target+:') ;; create-protocol-filter) - _command_args=('--classname' '--protocol' '--target') + _command_args=('--classname+:' '--protocol+:' '--target+:') ;; create-protocol-finder) - _command_args=('--classname' '--protocol' '--target' '--targetprotocol') + _command_args=('--classname+:' '--protocol+:' '--target+:' '--targetprotocol+:') ;; create-resource-adapter-config) - _command_args=('--objecttype' '--property' '--target' '--threadpoolid') + _command_args=('--objecttype+:' '--property+:' '--target+:' '--threadpoolid+:') ;; create-resource-ref) - _command_args=('--enabled' '--target') + _command_args=('--enabled+:enabled:(true false)' '--target+:') ;; create-service) - _command_args=('--domaindir' '--dry-run' '--force' '--name' '--node' '--nodedir' '--serviceproperties' '--serviceuser') + _command_args=('--domaindir+:' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') ;; create-ssl) - _command_args=('--certname' '--clientauthenabled' '--ssl2ciphers' '--ssl2enabled' '--ssl3enabled' '--ssl3tlsciphers' '--target' '--tlsenabled' '--tlsrollbackenabled' '--type') + _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') ;; create-system-properties) - _command_args=('--target') + _command_args=('--target+:') ;; create-threadpool) - _command_args=('--idletimeout' '--maxqueuesize' '--maxthreadpoolsize' '--minthreadpoolsize' '--target' '--workqueues') + _command_args=('--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--target+:' '--workqueues+:') ;; create-transport) - _command_args=('--acceptorthreads' '--buffersizebytes' '--bytebuffertype' '--classname' '--displayconfiguration' '--enablesnoop' '--idlekeytimeoutseconds' '--maxconnectionscount' '--readtimeoutmillis' '--selectionkeyhandler' '--selectorpolltimeoutmillis' '--target' '--tcpnodelay' '--writetimeoutmillis') + _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:') ;; create-virtual-server) - _command_args=('--defaultwebmodule' '--hosts' '--httplisteners' '--logfile' '--networklisteners' '--property' '--state' '--target') + _command_args=('--defaultwebmodule+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--property+:' '--state+:state:(on off disabled)' '--target+:') ;; delete-admin-object) - _command_args=('--target') + _command_args=('--target+:') ;; delete-application-ref) - _command_args=('--cascade' '--target') + _command_args=('--cascade+:cascade:(true false)' '--target+:') ;; delete-audit-module) - _command_args=('--target') + _command_args=('--target+:') ;; delete-auth-realm) - _command_args=('--target') + _command_args=('--target+:') ;; delete-connector-connection-pool) - _command_args=('--cascade' '--target') + _command_args=('--cascade+:cascade:(true false)' '--target+:') ;; delete-connector-resource) - _command_args=('--target') + _command_args=('--target+:') ;; delete-connector-security-map) - _command_args=('--poolname' '--target') + _command_args=('--poolname+:' '--target+:') ;; delete-connector-work-security-map) - _command_args=('--raname') + _command_args=('--raname+:') ;; delete-custom-resource) - _command_args=('--target') + _command_args=('--target+:') ;; delete-domain) - _command_args=('--domaindir') + _command_args=('--domaindir+:') ;; delete-file-user) - _command_args=('--authrealmname' '--target') + _command_args=('--authrealmname+:' '--target+:') ;; delete-http) - _command_args=('--target') + _command_args=('--target+:') ;; delete-http-health-checker) - _command_args=('--config') + _command_args=('--config+:') ;; delete-http-lb-ref) - _command_args=('--config' '--force' '--lbname') + _command_args=('--config+:' '--force+:' '--lbname+:') ;; delete-http-listener) - _command_args=('--secure' '--target') + _command_args=('--secure+:' '--target+:') ;; delete-http-redirect) - _command_args=('--target') + _command_args=('--target+:') ;; delete-iiop-listener) - _command_args=('--target') + _command_args=('--target+:') ;; delete-instance) - _command_args=('--terse') + _command_args=('--terse+:terse:(true false)') ;; delete-jacc-provider) - _command_args=('--target') + _command_args=('--target+:') ;; delete-javamail-resource) - _command_args=('--target') + _command_args=('--target+:') ;; delete-jdbc-connection-pool) - _command_args=('--cascade' '--target') + _command_args=('--cascade+:cascade:(true false)' '--target+:') ;; delete-jdbc-resource) - _command_args=('--target') + _command_args=('--target+:') ;; delete-jms-host) - _command_args=('--target') + _command_args=('--target+:') ;; delete-jms-resource) - _command_args=('--target') + _command_args=('--target+:') ;; delete-jmsdest) - _command_args=('--desttype' '--target') + _command_args=('--desttype+:' '--target+:') ;; delete-jndi-resource) - _command_args=('--target') + _command_args=('--target+:') ;; delete-jvm-options) - _command_args=('--profiler' '--target') + _command_args=('--profiler+:profiler:(true false)' '--target+:') ;; delete-lifecycle-module) - _command_args=('--target') + _command_args=('--target+:') ;; delete-local-instance) - _command_args=('--node' '--nodedir') + _command_args=('--node+:' '--nodedir+:') ;; delete-log-levels) - _command_args=('--target') + _command_args=('--target+:') ;; delete-message-security-provider) - _command_args=('--layer' '--target') + _command_args=('--layer+:' '--target+:') ;; delete-network-listener) - _command_args=('--target') + _command_args=('--target+:') ;; delete-profiler) - _command_args=('--target') + _command_args=('--target+:') ;; delete-protocol) - _command_args=('--target') + _command_args=('--target+:') ;; delete-protocol-filter) - _command_args=('--protocol' '--target') + _command_args=('--protocol+:' '--target+:') ;; delete-protocol-finder) - _command_args=('--protocol' '--target') + _command_args=('--protocol+:' '--target+:') ;; delete-resource-adapter-config) - _command_args=('--target') + _command_args=('--target+:') ;; delete-resource-ref) - _command_args=('--target') + _command_args=('--target+:') ;; delete-ssl) - _command_args=('--target' '--type') + _command_args=('--target+:' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') ;; delete-system-property) - _command_args=('--target') + _command_args=('--target+:') ;; delete-threadpool) - _command_args=('--target') + _command_args=('--target+:') ;; delete-transport) - _command_args=('--target') + _command_args=('--target+:') ;; delete-virtual-server) - _command_args=('--target') + _command_args=('--target+:') ;; deploy) - _command_args=('--asyncreplication' '--availabilityenabled' '--contextroot' '--createtables' '--dbvendorname' '--deploymentplan' '--description' '--dropandcreatetables' '--enabled' '--force' '--generatermistubs' '--isredeploy' '--keepfailedstubs' '--keepreposdir' '--keepstate' '--lbenabled' '--libraries' '--logreportederrors' '--name' '--precompilejsp' '--properties' '--property' '--retrieve' '--target' '--type' '--uniquetablenames' '--verify' '--virtualservers') + _command_args=('--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; deploydir) - _command_args=('--asyncreplication' '--availabilityenabled' '--contextroot' '--createtables' '--dbvendorname' '--deploymentplan' '--description' '--dropandcreatetables' '--enabled' '--force' '--generatermistubs' '--isredeploy' '--keepfailedstubs' '--keepreposdir' '--keepstate' '--lbenabled' '--libraries' '--logreportederrors' '--name' '--precompilejsp' '--properties' '--property' '--retrieve' '--target' '--type' '--uniquetablenames' '--verify' '--virtualservers') + _command_args=('--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; disable) - _command_args=('--cascade' '--droptables' '--isredeploy' '--isundeploy' '--keepreposdir' '--keepstate' '--properties' '--target') + _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--properties+:' '--target+:') ;; disable-http-lb-application) - _command_args=('--name' '--timeout') + _command_args=('--name+:' '--timeout+:') ;; disable-http-lb-server) - _command_args=('--timeout') + _command_args=('--timeout+:') ;; disable-monitoring) - _command_args=('--modules' '--target') + _command_args=('--modules+:' '--target+:') ;; enable) - _command_args=('--target') + _command_args=('--target+:') ;; enable-http-lb-application) - _command_args=('--name') + _command_args=('--name+:') ;; enable-monitoring) - _command_args=('--dtrace' '--mbean' '--modules' '--options' '--pid' '--target') + _command_args=('--dtrace+:dtrace:(true false)' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--target+:') ;; enable-secure-admin) - _command_args=('--adminalias' '--instancealias') + _command_args=('--adminalias+:' '--instancealias+:') ;; export-http-lb-config) - _command_args=('--config' '--lbname' '--lbtargets' '--property' '--retrievefile') + _command_args=('--config+:' '--lbname+:' '--lbtargets+:' '--property+:' '--retrievefile+:retrievefile:(true false)') ;; export-sync-bundle) - _command_args=('--retrieve' '--target') + _command_args=('--retrieve+:retrieve:(true false)' '--target+:') ;; flush-connection-pool) - _command_args=('--appname' '--modulename') + _command_args=('--appname+:' '--modulename+:') ;; flush-jmsdest) - _command_args=('--desttype' '--target') + _command_args=('--desttype+:' '--target+:') ;; freeze-transaction-service) - _command_args=('--target') + _command_args=('--target+:') ;; generate-domain-schema) - _command_args=('--format' '--showdeprecated' '--showsubclasses') + _command_args=('--format+:' '--showdeprecated+:showdeprecated:(true false)' '--showsubclasses+:showsubclasses:(true false)') ;; generate-jvm-report) - _command_args=('--target' '--type') + _command_args=('--target+:' '--type+:type:(summary thread class memory log)') ;; get) - _command_args=('--monitor') + _command_args=('--monitor+:monitor:(true false)') ;; get-client-stubs) - _command_args=('--appname') + _command_args=('--appname+:') ;; import-sync-bundle) - _command_args=('--instance' '--node' '--nodedir') + _command_args=('--instance+:' '--node+:' '--nodedir+:') ;; install-node-dcom) - _command_args=('--archive' '--create' '--force' '--installdir' '--save' '--windowsdomain' '--windowsuser') + _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--windowsdomain+:' '--windowsuser+:') ;; install-node-ssh) - _command_args=('--archive' '--create' '--force' '--installdir' '--save' '--sshkeyfile' '--sshport' '--sshuser') + _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') ;; jms-ping) - _command_args=('--target') + _command_args=('--target+:') ;; list) - _command_args=('--monitor') + _command_args=('--monitor+:monitor:(true false)') ;; list-application-refs) - _command_args=('--long' '--terse') + _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') ;; list-backups) - _command_args=('--backupconfig' '--backupdir' '--domaindir' '--long') + _command_args=('--backupconfig+:' '--backupdir+:' '--domaindir+:' '--long+:long:(true false)') ;; list-commands) - _command_args=('--localonly' '--remoteonly') + _command_args=('--localonly+:localonly:(true false)' '--remoteonly+:remoteonly:(true false)') ;; list-components) - _command_args=('--long' '--resources' '--subcomponents' '--terse' '--type') + _command_args=('--long+:long:(true false)' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') ;; list-connector-security-maps) - _command_args=('--long' '--securitymap' '--target') + _command_args=('--long+:long:(true false)' '--securitymap+:' '--target+:') ;; list-connector-work-security-maps) - _command_args=('--securitymap') + _command_args=('--securitymap+:') ;; list-custom-resources) - _command_args=('--target') + _command_args=('--target+:') ;; list-domains) - _command_args=('--domaindir') + _command_args=('--domaindir+:') ;; list-file-groups) - _command_args=('--authrealmname' '--name') + _command_args=('--authrealmname+:' '--name+:') ;; list-file-users) - _command_args=('--authrealmname') + _command_args=('--authrealmname+:') ;; list-http-listeners) - _command_args=('--long') + _command_args=('--long+:long:(true false)') ;; list-instances) - _command_args=('--long' '--nostatus' '--standaloneonly' '--timeoutmsec') + _command_args=('--long+:long:(true false)' '--nostatus+:nostatus:(true false)' '--standaloneonly+:standaloneonly:(true false)' '--timeoutmsec+:') ;; list-javamail-resources) - _command_args=('--target') + _command_args=('--target+:') ;; list-jms-hosts) - _command_args=('--target') + _command_args=('--target+:') ;; list-jms-resources) - _command_args=('--restype') + _command_args=('--restype+:') ;; list-jmsdest) - _command_args=('--desttype' '--property') + _command_args=('--desttype+:' '--property+:') ;; list-jndi-entries) - _command_args=('--context') + _command_args=('--context+:') ;; list-jndi-resources) - _command_args=('--target') + _command_args=('--target+:') ;; list-jvm-options) - _command_args=('--profiler' '--target') + _command_args=('--profiler+:profiler:(true false)' '--target+:') ;; list-libraries) - _command_args=('--type') + _command_args=('--type+:type:(common ext app)') ;; list-lifecycle-modules) - _command_args=('--terse') + _command_args=('--terse+:terse:(true false)') ;; list-message-security-providers) - _command_args=('--layer') + _command_args=('--layer+:layer:(SOAP HttpServlet)') ;; list-nodes) - _command_args=('--long' '--terse') + _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') ;; list-nodes-config) - _command_args=('--long' '--terse') + _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') ;; list-nodes-dcom) - _command_args=('--long' '--terse') + _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') ;; list-nodes-ssh) - _command_args=('--long' '--terse') + _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') ;; list-persistence-types) - _command_args=('--type') + _command_args=('--type+:') ;; list-protocol-filters) - _command_args=('--target') + _command_args=('--target+:') ;; list-protocol-finders) - _command_args=('--target') + _command_args=('--target+:') ;; list-resource-adapter-configs) - _command_args=('--long' '--raname') + _command_args=('--long+:long:(true false)' '--raname+:') ;; list-sub-components) - _command_args=('--appname' '--resources' '--terse' '--type') + _command_args=('--appname+:' '--resources+:resources:(true false)' '--terse+:terse:(true false)' '--type+:') ;; list-virtual-servers) - _command_args=('--target') + _command_args=('--target+:') ;; list-web-context-param) - _command_args=('--name') + _command_args=('--name+:') ;; list-web-env-entry) - _command_args=('--name') + _command_args=('--name+:') ;; login) - _command_args=('--target') + _command_args=('--target+:') ;; migrate-timers) - _command_args=('--target') + _command_args=('--target+:') ;; monitor) - _command_args=('--filename' '--filter' '--interval' '--type') + _command_args=('--filename+:' '--filter+:' '--interval+:' '--type+:') ;; multimode) - _command_args=('--encoding' '--file' '--printprompt') + _command_args=('--encoding+:' '--file+:' '--printprompt+:printprompt:(true false)') ;; ping-connection-pool) - _command_args=('--appname' '--modulename' '--target') + _command_args=('--appname+:' '--modulename+:' '--target+:') ;; recover-transactions) - _command_args=('--target' '--transactionlogdir') + _command_args=('--target+:' '--transactionlogdir+:') ;; redeploy) - _command_args=('--asyncreplication' '--availabilityenabled' '--contextroot' '--createtables' '--dbvendorname' '--deploymentplan' '--description' '--dropandcreatetables' '--enabled' '--force' '--generatermistubs' '--isredeploy' '--keepfailedstubs' '--keepreposdir' '--keepstate' '--lbenabled' '--libraries' '--logreportederrors' '--name' '--precompilejsp' '--properties' '--property' '--retrieve' '--target' '--type' '--uniquetablenames' '--verify' '--virtualservers') + _command_args=('--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; remove-library) - _command_args=('--type') + _command_args=('--type+:type:(common ext app)') ;; restart-domain) - _command_args=('--debug' '--domaindir' '--force' '--kill') + _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') ;; restart-instance) - _command_args=('--debug') + _command_args=('--debug+:') ;; restart-local-instance) - _command_args=('--debug' '--force' '--kill' '--node' '--nodedir') + _command_args=('--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:' '--nodedir+:') ;; restore-domain) - _command_args=('--backupconfig' '--backupdir' '--description' '--domaindir' '--filename' '--force' '--long') + _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)') ;; rollback-transaction) - _command_args=('--target' '--transaction_id') + _command_args=('--target+:' '--transaction_id+:') ;; rotate-log) - _command_args=('--target') + _command_args=('--target+:') ;; set-log-attributes) - _command_args=('--target') + _command_args=('--target+:') ;; set-log-levels) - _command_args=('--target') + _command_args=('--target+:') ;; set-web-context-param) - _command_args=('--description' '--ignoredescriptoritem' '--name' '--value') + _command_args=('--description+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--value+:') ;; set-web-env-entry) - _command_args=('--description' '--ignoredescriptoritem' '--name' '--type' '--value') + _command_args=('--description+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--type+:' '--value+:') ;; setup-ssh) - _command_args=('--generatekey' '--sshkeyfile' '--sshport' '--sshpublickeyfile' '--sshuser') + _command_args=('--generatekey+:generatekey:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshpublickeyfile+:' '--sshuser+:') ;; show-component-status) - _command_args=('--target') + _command_args=('--target+:') ;; start-cluster) - _command_args=('--autohadboverride' '--verbose') + _command_args=('--autohadboverride+:autohadboverride:(true false)' '--verbose+:verbose:(true false)') ;; start-database) - _command_args=('--dbhome' '--dbhost' '--dbport' '--jvmoptions') + _command_args=('--dbhome+:' '--dbhost+:' '--dbport+:' '--jvmoptions+:') ;; start-domain) - _command_args=('--debug' '--domaindir' '--upgrade' '--verbose') + _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--upgrade+:upgrade:(true false)' '--verbose+:verbose:(true false)') ;; start-instance) - _command_args=('--debug' '--setenv' '--sync' '--terse') + _command_args=('--debug+:debug:(true false)' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)') ;; start-local-instance) - _command_args=('--debug' '--node' '--nodedir' '--sync' '--verbose') + _command_args=('--debug+:debug:(true false)' '--node+:' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)') ;; stop-cluster) - _command_args=('--autohadboverride' '--kill' '--verbose') + _command_args=('--autohadboverride+:autohadboverride:(true false)' '--kill+:kill:(true false)' '--verbose+:verbose:(true false)') ;; stop-database) - _command_args=('--dbhost' '--dbport' '--dbuser') + _command_args=('--dbhost+:' '--dbport+:' '--dbuser+:') ;; stop-domain) - _command_args=('--domaindir' '--force' '--kill') + _command_args=('--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') ;; stop-instance) - _command_args=('--force' '--kill') + _command_args=('--force+:force:(true false)' '--kill+:kill:(true false)') ;; stop-local-instance) - _command_args=('--force' '--kill' '--node' '--nodedir') + _command_args=('--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:' '--nodedir+:') ;; undeploy) - _command_args=('--cascade' '--droptables' '--isredeploy' '--keepreposdir' '--keepstate' '--properties' '--target') + _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--properties+:' '--target+:') ;; unfreeze-transaction-service) - _command_args=('--target') + _command_args=('--target+:') ;; uninstall-node-dcom) - _command_args=('--force' '--installdir' '--windowsdomain' '--windowsuser') + _command_args=('--force+:force:(true false)' '--installdir+:' '--windowsdomain+:' '--windowsuser+:') ;; uninstall-node-ssh) - _command_args=('--force' '--installdir' '--sshkeyfile' '--sshport' '--sshuser') + _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') ;; unset-web-context-param) - _command_args=('--name') + _command_args=('--name+:') ;; unset-web-env-entry) - _command_args=('--name') + _command_args=('--name+:') ;; update-connector-security-map) - _command_args=('--addprincipals' '--addusergroups' '--mappedpassword' '--mappedusername' '--poolname' '--removeprincipals' '--removeusergroups' '--target') + _command_args=('--addprincipals+:' '--addusergroups+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--removeprincipals+:' '--removeusergroups+:' '--target+:') ;; update-connector-work-security-map) - _command_args=('--addgroups' '--addprincipals' '--raname' '--removegroups' '--removeprincipals') + _command_args=('--addgroups+:' '--addprincipals+:' '--raname+:' '--removegroups+:' '--removeprincipals+:') ;; update-file-user) - _command_args=('--authrealmname' '--groups' '--target' '--userpassword') + _command_args=('--authrealmname+:' '--groups+:' '--target+:' '--userpassword+:') ;; update-node-config) - _command_args=('--installdir' '--nodedir' '--nodehost') + _command_args=('--installdir+:' '--nodedir+:' '--nodehost+:') ;; update-node-dcom) - _command_args=('--force' '--installdir' '--nodedir' '--nodehost' '--windowsdomain' '--windowspassword' '--windowsuser') + _command_args=('--force+:force:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') ;; update-node-ssh) - _command_args=('--force' '--installdir' '--nodedir' '--nodehost' '--sshkeyfile' '--sshkeypassphrase' '--sshpassword' '--sshport' '--sshuser') + _command_args=('--force+:force:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') ;; update-password-alias) - _command_args=('--aliaspassword') + _command_args=('--aliaspassword+:') ;; uptime) - _command_args=('--milliseconds') + _command_args=('--milliseconds+:milliseconds:(true false)') ;; validate-dcom) - _command_args=('--remotetestdir' '--verbose' '--windowsdomain' '--windowspassword' '--windowsuser') + _command_args=('--remotetestdir+:' '--verbose+:verbose:(true false)' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') ;; validate-multicast) - _command_args=('--bindaddress' '--multicastaddress' '--multicastport' '--sendperiod' '--timeout' '--timetolive' '--verbose') + _command_args=('--bindaddress+:' '--multicastaddress+:' '--multicastport+:' '--sendperiod+:' '--timeout+:' '--timetolive+:' '--verbose+:verbose:(true false)') ;; verify-domain-xml) - _command_args=('--domaindir') + _command_args=('--domaindir+:') ;; version) - _command_args=('--local' '--terse' '--verbose') + _command_args=('--local+:local:(true false)' '--terse+:terse:(true false)' '--verbose+:verbose:(true false)') ;; esac From e4ffac154d4af9187b4d052c9fc1b3305a538076 Mon Sep 17 00:00:00 2001 From: fred-o Date: Fri, 13 Jul 2012 16:24:45 +0200 Subject: [PATCH 20/36] added _files values for certain options --- plugins/glassfish/_asadmin | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index f0ebea9f2..2ae6064e9 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -279,10 +279,10 @@ fi local -a _command_args case "$words[1]" in add-library) - _command_args=('--type+:type:(common ext app)') + _command_args=('*:directory:_files' '--type+:type:(common ext app)') ;; add-resources) - _command_args=('--target+:') + _command_args=('*:directory:_files' '--target+:') ;; apply-http-lb-changes) _command_args=('--ping+:') @@ -438,7 +438,7 @@ case "$words[1]" in _command_args=('--enabled+:enabled:(true false)' '--target+:') ;; create-service) - _command_args=('--domaindir+:' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') + _command_args=('--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') ;; create-ssl) _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') @@ -585,10 +585,10 @@ case "$words[1]" in _command_args=('--target+:') ;; deploy) - _command_args=('--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; deploydir) - _command_args=('--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; disable) _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--properties+:' '--target+:') @@ -765,10 +765,10 @@ case "$words[1]" in _command_args=('--target+:') ;; monitor) - _command_args=('--filename+:' '--filter+:' '--interval+:' '--type+:') + _command_args=('--filename+:filename:directory:_files' '--filter+:' '--interval+:' '--type+:') ;; multimode) - _command_args=('--encoding+:' '--file+:' '--printprompt+:printprompt:(true false)') + _command_args=('--encoding+:' '--file+:file:directory:_files' '--printprompt+:printprompt:(true false)') ;; ping-connection-pool) _command_args=('--appname+:' '--modulename+:' '--target+:') @@ -777,7 +777,7 @@ case "$words[1]" in _command_args=('--target+:' '--transactionlogdir+:') ;; redeploy) - _command_args=('--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; remove-library) _command_args=('--type+:type:(common ext app)') From b49c97e08ee5abc705b001d846575c33dee1bf56 Mon Sep 17 00:00:00 2001 From: fred-o Date: Tue, 24 Jul 2012 12:15:36 +0200 Subject: [PATCH 21/36] help command, node completion --- plugins/glassfish/_asadmin | 1394 ++++++++++++++++++++---------------- 1 file changed, 769 insertions(+), 625 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index 2ae6064e9..b29d65d3b 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -144,6 +144,7 @@ _1st_arguments=( "get:gets the values of configurable or monitorable attributes" "get-client-stubs:retrieves the application JAR files needed to launch the application client." "get-health:provides information on the cluster health" + "help" "asadmin:utility for performing administrative tasks for Oracle GlassFish Server" "import-sync-bundle:imports the configuration data of a clustered instance or standalone instance from an archive file" "install-node:installs GlassFish Server software on specified SSH-enabled hosts" @@ -278,632 +279,775 @@ fi local -a _command_args case "$words[1]" in - add-library) - _command_args=('*:directory:_files' '--type+:type:(common ext app)') - ;; - add-resources) - _command_args=('*:directory:_files' '--target+:') - ;; - apply-http-lb-changes) - _command_args=('--ping+:') - ;; - backup-domain) - _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--long+:long:(true false)') - ;; - change-admin-password) - _command_args=('--domain_name+:' '--domaindir+:') - ;; - change-master-password) - _command_args=('--domaindir+:' '--nodedir+:' '--savemasterpassword+:savemasterpassword:(true false)') - ;; - collect-log-files) - _command_args=('--retrieve+:retrieve:(true false)' '--target+:') - ;; - configure-jms-cluster) - _command_args=('--clustertype+:' '--configstoretype+:' '--dburl+:' '--dbuser+:' '--dbvendor+:' '--jmsdbpassword+:' '--messagestoretype+:' '--property+:') - ;; - configure-lb-weight) - _command_args=('--cluster+:') - ;; - configure-ldap-for-admin) - _command_args=('--basedn+:' '--ldap-group+:' '--target+:' '--url+:') - ;; - copy-config) - _command_args=('--systemproperties+:') - ;; - create-admin-object) - _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--property+:' '--raname+:' '--restype+:' '--target+:') - ;; - create-application-ref) - _command_args=('--enabled+:enabled:(true false)' '--lbenabled+:lbenabled:(true false)' '--target+:' '--virtualservers+:') - ;; - create-audit-module) - _command_args=('--classname+:' '--property+:' '--target+:') - ;; - create-auth-realm) - _command_args=('--classname+:' '--property+:' '--target+:') - ;; - create-connector-connection-pool) - _command_args=('--associatewiththread+:associatewiththread:(true false)' '--connectiondefinition+:' '--creationretryattempts+:' '--creationretryinterval+:' '--description+:' '--failconnection+:failconnection:(true false)' '--idletimeout+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--property+:' '--raname+:' '--steadypoolsize+:' '--target+:' '--transactionsupport+:transactionsupport:(XATransaction LocalTransaction NoTransaction)' '--validateatmostonceperiod+:') - ;; - create-connector-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--objecttype+:' '--poolname+:' '--property+:' '--target+:') - ;; - create-connector-security-map) - _command_args=('--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--principals+:' '--target+:' '--usergroups+:') - ;; - create-connector-work-security-map) - _command_args=('--description+:' '--groupsmap+:' '--principalsmap+:' '--raname+:') - ;; - create-custom-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--property+:' '--restype+:' '--target+:') - ;; - create-domain) - _command_args=('--adminport+:' '--checkports+:checkports:(true false)' '--domaindir+:' '--domainproperties+:' '--instanceport+:' '--keytooloptions+:' '--nopassword+:nopassword:(true false)' '--portbase+:' '--profile+:' '--savelogin+:savelogin:(true false)' '--savemasterpassword+:savemasterpassword:(true false)' '--template+:' '--usemasterpassword+:usemasterpassword:(true false)') - ;; - create-file-user) - _command_args=('--authrealmname+:' '--groups+:' '--target+:' '--userpassword+:') - ;; - create-http) - _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--max-connection+:' '--request-timeout-seconds+:' '--servername+:' '--target+:' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)') - ;; - create-http-health-checker) - _command_args=('--config+:' '--interval+:' '--timeout+:' '--url+:') - ;; - create-http-lb) - _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:') - ;; - create-http-lb-ref) - _command_args=('--config+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbname+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:') - ;; - create-http-listener) - _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--listeneraddress+:' '--listenerport+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:' '--xpowered+:xpowered:(true false)') - ;; - create-http-redirect) - _command_args=('--redirect-port+:' '--secure-redirect+:' '--target+:') - ;; - create-iiop-listener) - _command_args=('--enabled+:enabled:(true false)' '--iiopport+:' '--listeneraddress+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:') - ;; - create-instance) - _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)') - ;; - create-jacc-provider) - _command_args=('--policyconfigfactoryclass+:' '--policyproviderclass+:' '--property+:' '--target+:') - ;; - create-javamail-resource) - _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--mailhost+:' '--mailuser+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:' '--transprotocol+:' '--transprotocolclass+:') - ;; - create-jdbc-connection-pool) - _command_args=('--allownoncomponentcallers+:allownoncomponentcallers:(true false)' '--associatewiththread+:associatewiththread:(true false)' '--creationretryattempts+:' '--creationretryinterval+:' '--datasourceclassname+:' '--description+:' '--driverclassname+:' '--failconnection+:failconnection:(true false)' '--idletimeout+:' '--initsql+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--isisolationguaranteed+:isisolationguaranteed:(true false)' '--isolationlevel+:' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--nontransactionalconnections+:nontransactionalconnections:(true false)' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--property+:' '--restype+:restype:(javax.sql.DataSource javax.sql.XADataSource javax.sql.ConnectionPoolDataSource java.sql.Driver)' '--sqltracelisteners+:' '--statementcachesize+:' '--statementleakreclaim+:statementleakreclaim:(true false)' '--statementleaktimeout+:' '--statementtimeout+:' '--steadypoolsize+:' '--target+:' '--validateatmostonceperiod+:' '--validationclassname+:' '--validationmethod+:validationmethod:(auto-commit meta-data table custom-validation)' '--validationtable+:' '--wrapjdbcobjects+:wrapjdbcobjects:(true false)') - ;; - create-jdbc-resource) - _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--property+:' '--target+:') - ;; - create-jms-host) - _command_args=('--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--property+:' '--target+:') - ;; - create-jms-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--property+:' '--restype+:' '--target+:') - ;; - create-jmsdest) - _command_args=('--desttype+:' '--property+:' '--target+:') - ;; - create-jndi-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--jndilookupname+:' '--property+:' '--restype+:' '--target+:') - ;; - create-jvm-options) - _command_args=('--profiler+:profiler:(true false)' '--target+:') - ;; - create-lifecycle-module) - _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--loadorder+:' '--property+:' '--target+:') - ;; - create-local-instance) - _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)') - ;; - create-message-security-provider) - _command_args=('--classname+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:') - ;; - create-network-listener) - _command_args=('--address+:' '--enabled+:enabled:(true false)' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--protocol+:' '--target+:' '--threadpool+:' '--transport+:') - ;; - create-node-config) - _command_args=('--installdir+:' '--nodedir+:' '--nodehost+:') - ;; - create-node-dcom) - _command_args=('--archive+:' '--force+:force:(true false)' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') - ;; - create-node-ssh) - _command_args=('--archive+:' '--force+:force:(true false)' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') - ;; - create-password-alias) - _command_args=('--aliaspassword+:') - ;; - create-profiler) - _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--nativelibrarypath+:' '--property+:' '--target+:') - ;; - create-protocol) - _command_args=('--securityenabled+:securityenabled:(true false)' '--target+:') - ;; - create-protocol-filter) - _command_args=('--classname+:' '--protocol+:' '--target+:') - ;; - create-protocol-finder) - _command_args=('--classname+:' '--protocol+:' '--target+:' '--targetprotocol+:') - ;; - create-resource-adapter-config) - _command_args=('--objecttype+:' '--property+:' '--target+:' '--threadpoolid+:') - ;; - create-resource-ref) - _command_args=('--enabled+:enabled:(true false)' '--target+:') - ;; - create-service) - _command_args=('--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') - ;; - create-ssl) - _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') - ;; - create-system-properties) - _command_args=('--target+:') - ;; - create-threadpool) - _command_args=('--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--target+:' '--workqueues+:') - ;; - create-transport) - _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:') - ;; - create-virtual-server) - _command_args=('--defaultwebmodule+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--property+:' '--state+:state:(on off disabled)' '--target+:') - ;; - delete-admin-object) - _command_args=('--target+:') - ;; - delete-application-ref) - _command_args=('--cascade+:cascade:(true false)' '--target+:') - ;; - delete-audit-module) - _command_args=('--target+:') - ;; - delete-auth-realm) - _command_args=('--target+:') - ;; - delete-connector-connection-pool) - _command_args=('--cascade+:cascade:(true false)' '--target+:') - ;; - delete-connector-resource) - _command_args=('--target+:') - ;; - delete-connector-security-map) - _command_args=('--poolname+:' '--target+:') - ;; - delete-connector-work-security-map) - _command_args=('--raname+:') - ;; - delete-custom-resource) - _command_args=('--target+:') - ;; - delete-domain) - _command_args=('--domaindir+:') - ;; - delete-file-user) - _command_args=('--authrealmname+:' '--target+:') - ;; - delete-http) - _command_args=('--target+:') - ;; - delete-http-health-checker) - _command_args=('--config+:') - ;; - delete-http-lb-ref) - _command_args=('--config+:' '--force+:' '--lbname+:') - ;; - delete-http-listener) - _command_args=('--secure+:' '--target+:') - ;; - delete-http-redirect) - _command_args=('--target+:') - ;; - delete-iiop-listener) - _command_args=('--target+:') - ;; - delete-instance) - _command_args=('--terse+:terse:(true false)') - ;; - delete-jacc-provider) - _command_args=('--target+:') - ;; - delete-javamail-resource) - _command_args=('--target+:') - ;; - delete-jdbc-connection-pool) - _command_args=('--cascade+:cascade:(true false)' '--target+:') - ;; - delete-jdbc-resource) - _command_args=('--target+:') - ;; - delete-jms-host) - _command_args=('--target+:') - ;; - delete-jms-resource) - _command_args=('--target+:') - ;; - delete-jmsdest) - _command_args=('--desttype+:' '--target+:') - ;; - delete-jndi-resource) - _command_args=('--target+:') - ;; - delete-jvm-options) - _command_args=('--profiler+:profiler:(true false)' '--target+:') - ;; - delete-lifecycle-module) - _command_args=('--target+:') - ;; - delete-local-instance) - _command_args=('--node+:' '--nodedir+:') - ;; - delete-log-levels) - _command_args=('--target+:') - ;; - delete-message-security-provider) - _command_args=('--layer+:' '--target+:') - ;; - delete-network-listener) - _command_args=('--target+:') - ;; - delete-profiler) - _command_args=('--target+:') - ;; - delete-protocol) - _command_args=('--target+:') - ;; - delete-protocol-filter) - _command_args=('--protocol+:' '--target+:') - ;; - delete-protocol-finder) - _command_args=('--protocol+:' '--target+:') - ;; - delete-resource-adapter-config) - _command_args=('--target+:') - ;; - delete-resource-ref) - _command_args=('--target+:') - ;; - delete-ssl) - _command_args=('--target+:' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') - ;; - delete-system-property) - _command_args=('--target+:') - ;; - delete-threadpool) - _command_args=('--target+:') - ;; - delete-transport) - _command_args=('--target+:') - ;; - delete-virtual-server) - _command_args=('--target+:') - ;; - deploy) - _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') - ;; - deploydir) - _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') - ;; - disable) - _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--properties+:' '--target+:') - ;; - disable-http-lb-application) - _command_args=('--name+:' '--timeout+:') - ;; - disable-http-lb-server) - _command_args=('--timeout+:') - ;; - disable-monitoring) - _command_args=('--modules+:' '--target+:') - ;; - enable) - _command_args=('--target+:') - ;; - enable-http-lb-application) - _command_args=('--name+:') - ;; - enable-monitoring) - _command_args=('--dtrace+:dtrace:(true false)' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--target+:') - ;; - enable-secure-admin) - _command_args=('--adminalias+:' '--instancealias+:') - ;; - export-http-lb-config) - _command_args=('--config+:' '--lbname+:' '--lbtargets+:' '--property+:' '--retrievefile+:retrievefile:(true false)') - ;; - export-sync-bundle) - _command_args=('--retrieve+:retrieve:(true false)' '--target+:') - ;; - flush-connection-pool) - _command_args=('--appname+:' '--modulename+:') - ;; - flush-jmsdest) - _command_args=('--desttype+:' '--target+:') - ;; - freeze-transaction-service) - _command_args=('--target+:') - ;; - generate-domain-schema) - _command_args=('--format+:' '--showdeprecated+:showdeprecated:(true false)' '--showsubclasses+:showsubclasses:(true false)') - ;; - generate-jvm-report) - _command_args=('--target+:' '--type+:type:(summary thread class memory log)') - ;; - get) - _command_args=('--monitor+:monitor:(true false)') - ;; - get-client-stubs) - _command_args=('--appname+:') - ;; - import-sync-bundle) - _command_args=('--instance+:' '--node+:' '--nodedir+:') - ;; - install-node-dcom) - _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--windowsdomain+:' '--windowsuser+:') - ;; - install-node-ssh) - _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') - ;; - jms-ping) - _command_args=('--target+:') - ;; - list) - _command_args=('--monitor+:monitor:(true false)') - ;; - list-application-refs) - _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') - ;; - list-backups) - _command_args=('--backupconfig+:' '--backupdir+:' '--domaindir+:' '--long+:long:(true false)') - ;; - list-commands) - _command_args=('--localonly+:localonly:(true false)' '--remoteonly+:remoteonly:(true false)') - ;; - list-components) - _command_args=('--long+:long:(true false)' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') - ;; - list-connector-security-maps) - _command_args=('--long+:long:(true false)' '--securitymap+:' '--target+:') - ;; - list-connector-work-security-maps) - _command_args=('--securitymap+:') - ;; - list-custom-resources) - _command_args=('--target+:') - ;; - list-domains) - _command_args=('--domaindir+:') - ;; - list-file-groups) - _command_args=('--authrealmname+:' '--name+:') - ;; - list-file-users) - _command_args=('--authrealmname+:') - ;; - list-http-listeners) - _command_args=('--long+:long:(true false)') - ;; - list-instances) - _command_args=('--long+:long:(true false)' '--nostatus+:nostatus:(true false)' '--standaloneonly+:standaloneonly:(true false)' '--timeoutmsec+:') - ;; - list-javamail-resources) - _command_args=('--target+:') - ;; - list-jms-hosts) - _command_args=('--target+:') - ;; - list-jms-resources) - _command_args=('--restype+:') - ;; - list-jmsdest) - _command_args=('--desttype+:' '--property+:') - ;; - list-jndi-entries) - _command_args=('--context+:') - ;; - list-jndi-resources) - _command_args=('--target+:') - ;; - list-jvm-options) - _command_args=('--profiler+:profiler:(true false)' '--target+:') - ;; - list-libraries) - _command_args=('--type+:type:(common ext app)') - ;; - list-lifecycle-modules) - _command_args=('--terse+:terse:(true false)') - ;; - list-message-security-providers) - _command_args=('--layer+:layer:(SOAP HttpServlet)') - ;; - list-nodes) - _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') - ;; - list-nodes-config) - _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') - ;; - list-nodes-dcom) - _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') - ;; - list-nodes-ssh) - _command_args=('--long+:long:(true false)' '--terse+:terse:(true false)') - ;; - list-persistence-types) - _command_args=('--type+:') - ;; - list-protocol-filters) - _command_args=('--target+:') - ;; - list-protocol-finders) - _command_args=('--target+:') - ;; - list-resource-adapter-configs) - _command_args=('--long+:long:(true false)' '--raname+:') - ;; - list-sub-components) - _command_args=('--appname+:' '--resources+:resources:(true false)' '--terse+:terse:(true false)' '--type+:') - ;; - list-virtual-servers) - _command_args=('--target+:') - ;; - list-web-context-param) - _command_args=('--name+:') - ;; - list-web-env-entry) - _command_args=('--name+:') - ;; - login) - _command_args=('--target+:') - ;; - migrate-timers) - _command_args=('--target+:') - ;; - monitor) - _command_args=('--filename+:filename:directory:_files' '--filter+:' '--interval+:' '--type+:') - ;; - multimode) - _command_args=('--encoding+:' '--file+:file:directory:_files' '--printprompt+:printprompt:(true false)') - ;; - ping-connection-pool) - _command_args=('--appname+:' '--modulename+:' '--target+:') - ;; - recover-transactions) - _command_args=('--target+:' '--transactionlogdir+:') - ;; - redeploy) - _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') - ;; - remove-library) - _command_args=('--type+:type:(common ext app)') - ;; - restart-domain) - _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') - ;; - restart-instance) - _command_args=('--debug+:') - ;; - restart-local-instance) - _command_args=('--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:' '--nodedir+:') - ;; - restore-domain) - _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)') - ;; - rollback-transaction) - _command_args=('--target+:' '--transaction_id+:') - ;; - rotate-log) - _command_args=('--target+:') - ;; - set-log-attributes) - _command_args=('--target+:') - ;; - set-log-levels) - _command_args=('--target+:') - ;; - set-web-context-param) - _command_args=('--description+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--value+:') - ;; - set-web-env-entry) - _command_args=('--description+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--type+:' '--value+:') - ;; - setup-ssh) - _command_args=('--generatekey+:generatekey:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshpublickeyfile+:' '--sshuser+:') - ;; - show-component-status) - _command_args=('--target+:') - ;; - start-cluster) - _command_args=('--autohadboverride+:autohadboverride:(true false)' '--verbose+:verbose:(true false)') - ;; - start-database) - _command_args=('--dbhome+:' '--dbhost+:' '--dbport+:' '--jvmoptions+:') - ;; - start-domain) - _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--upgrade+:upgrade:(true false)' '--verbose+:verbose:(true false)') - ;; - start-instance) - _command_args=('--debug+:debug:(true false)' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)') - ;; - start-local-instance) - _command_args=('--debug+:debug:(true false)' '--node+:' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)') - ;; - stop-cluster) - _command_args=('--autohadboverride+:autohadboverride:(true false)' '--kill+:kill:(true false)' '--verbose+:verbose:(true false)') - ;; - stop-database) - _command_args=('--dbhost+:' '--dbport+:' '--dbuser+:') - ;; - stop-domain) - _command_args=('--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') - ;; - stop-instance) - _command_args=('--force+:force:(true false)' '--kill+:kill:(true false)') - ;; - stop-local-instance) - _command_args=('--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:' '--nodedir+:') - ;; - undeploy) - _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--properties+:' '--target+:') - ;; - unfreeze-transaction-service) - _command_args=('--target+:') - ;; - uninstall-node-dcom) - _command_args=('--force+:force:(true false)' '--installdir+:' '--windowsdomain+:' '--windowsuser+:') - ;; - uninstall-node-ssh) - _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') - ;; - unset-web-context-param) - _command_args=('--name+:') - ;; - unset-web-env-entry) - _command_args=('--name+:') - ;; - update-connector-security-map) - _command_args=('--addprincipals+:' '--addusergroups+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--removeprincipals+:' '--removeusergroups+:' '--target+:') - ;; - update-connector-work-security-map) - _command_args=('--addgroups+:' '--addprincipals+:' '--raname+:' '--removegroups+:' '--removeprincipals+:') - ;; - update-file-user) - _command_args=('--authrealmname+:' '--groups+:' '--target+:' '--userpassword+:') - ;; - update-node-config) - _command_args=('--installdir+:' '--nodedir+:' '--nodehost+:') - ;; - update-node-dcom) - _command_args=('--force+:force:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') - ;; - update-node-ssh) - _command_args=('--force+:force:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') - ;; - update-password-alias) - _command_args=('--aliaspassword+:') - ;; - uptime) - _command_args=('--milliseconds+:milliseconds:(true false)') - ;; - validate-dcom) - _command_args=('--remotetestdir+:' '--verbose+:verbose:(true false)' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') - ;; - validate-multicast) - _command_args=('--bindaddress+:' '--multicastaddress+:' '--multicastport+:' '--sendperiod+:' '--timeout+:' '--timetolive+:' '--verbose+:verbose:(true false)') - ;; - verify-domain-xml) - _command_args=('--domaindir+:') - ;; - version) - _command_args=('--local+:local:(true false)' '--terse+:terse:(true false)' '--verbose+:verbose:(true false)') - ;; + add-library) + _command_args=('*:directory:_files' '--host+:' '--port+:' '--type+:type:(common ext app)') + ;; + add-resources) + _command_args=('*:directory:_files' '--host+:' '--port+:' '--target+:') + ;; + apply-http-lb-changes) + _command_args=('--host+:' '--ping+:' '--port+:') + ;; + backup-domain) + _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--long+:long:(true false)') + ;; + change-admin-password) + _command_args=('--domain_name+:' '--domaindir+:') + ;; + change-master-broker) + _command_args=('--host+:' '--port+:') + ;; + change-master-password) + _command_args=('--domaindir+:' '--nodedir+:' '--savemasterpassword+:savemasterpassword:(true false)') + ;; + collect-log-files) + _command_args=('--host+:' '--port+:' '--retrieve+:retrieve:(true false)' '--target+:') + ;; + configure-jms-cluster) + _command_args=('--clustertype+:' '--configstoretype+:' '--dburl+:' '--dbuser+:' '--dbvendor+:' '--host+:' '--jmsdbpassword+:' '--messagestoretype+:' '--port+:' '--property+:') + ;; + configure-lb-weight) + _command_args=('--cluster+:' '--host+:' '--port+:') + ;; + configure-ldap-for-admin) + _command_args=('--basedn+:' '--host+:' '--ldap-group+:' '--port+:' '--target+:' '--url+:') + ;; + copy-config) + _command_args=('--host+:' '--port+:' '--systemproperties+:') + ;; + create-admin-object) + _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--raname+:' '--restype+:' '--target+:') + ;; + create-application-ref) + _command_args=('--enabled+:enabled:(true false)' '--host+:' '--lbenabled+:lbenabled:(true false)' '--port+:' '--target+:' '--virtualservers+:') + ;; + create-audit-module) + _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:') + ;; + create-auth-realm) + _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:') + ;; + create-connector-connection-pool) + _command_args=('--associatewiththread+:associatewiththread:(true false)' '--connectiondefinition+:' '--creationretryattempts+:' '--creationretryinterval+:' '--description+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--raname+:' '--steadypoolsize+:' '--target+:' '--transactionsupport+:transactionsupport:(XATransaction LocalTransaction NoTransaction)' '--validateatmostonceperiod+:') + ;; + create-connector-resource) + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--objecttype+:' '--poolname+:' '--port+:' '--property+:' '--target+:') + ;; + create-connector-security-map) + _command_args=('--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--principals+:' '--target+:' '--usergroups+:') + ;; + create-connector-work-security-map) + _command_args=('--description+:' '--groupsmap+:' '--host+:' '--port+:' '--principalsmap+:' '--raname+:') + ;; + create-custom-resource) + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:') + ;; + create-domain) + _command_args=('--adminport+:' '--checkports+:checkports:(true false)' '--domaindir+:' '--domainproperties+:' '--instanceport+:' '--keytooloptions+:' '--nopassword+:nopassword:(true false)' '--portbase+:' '--profile+:' '--savelogin+:savelogin:(true false)' '--savemasterpassword+:savemasterpassword:(true false)' '--template+:' '--usemasterpassword+:usemasterpassword:(true false)') + ;; + create-file-user) + _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:' '--userpassword+:') + ;; + create-http) + _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--host+:' '--max-connection+:' '--port+:' '--request-timeout-seconds+:' '--servername+:' '--target+:' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)') + ;; + create-http-health-checker) + _command_args=('--config+:' '--host+:' '--interval+:' '--port+:' '--timeout+:' '--url+:') + ;; + create-http-lb) + _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--port+:' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:') + ;; + create-http-lb-ref) + _command_args=('--config+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbname+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--port+:') + ;; + create-http-listener) + _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--host+:' '--listeneraddress+:' '--listenerport+:' '--port+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:' '--xpowered+:xpowered:(true false)') + ;; + create-http-redirect) + _command_args=('--host+:' '--port+:' '--redirect-port+:' '--secure-redirect+:' '--target+:') + ;; + create-iiop-listener) + _command_args=('--enabled+:enabled:(true false)' '--host+:' '--iiopport+:' '--listeneraddress+:' '--port+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:') + ;; + create-instance) + _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--host+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--port+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)') + ;; + create-jacc-provider) + _command_args=('--host+:' '--policyconfigfactoryclass+:' '--policyproviderclass+:' '--port+:' '--property+:' '--target+:') + ;; + create-javamail-resource) + _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--host+:' '--mailhost+:' '--mailuser+:' '--port+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:' '--transprotocol+:' '--transprotocolclass+:') + ;; + create-jdbc-connection-pool) + _command_args=('--allownoncomponentcallers+:allownoncomponentcallers:(true false)' '--associatewiththread+:associatewiththread:(true false)' '--creationretryattempts+:' '--creationretryinterval+:' '--datasourceclassname+:' '--description+:' '--driverclassname+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--initsql+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--isisolationguaranteed+:isisolationguaranteed:(true false)' '--isolationlevel+:' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--nontransactionalconnections+:nontransactionalconnections:(true false)' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--restype+:restype:(javax.sql.DataSource javax.sql.XADataSource javax.sql.ConnectionPoolDataSource java.sql.Driver)' '--sqltracelisteners+:' '--statementcachesize+:' '--statementleakreclaim+:statementleakreclaim:(true false)' '--statementleaktimeout+:' '--statementtimeout+:' '--steadypoolsize+:' '--target+:' '--validateatmostonceperiod+:' '--validationclassname+:' '--validationmethod+:validationmethod:(auto-commit meta-data table custom-validation)' '--validationtable+:' '--wrapjdbcobjects+:wrapjdbcobjects:(true false)') + ;; + create-jdbc-resource) + _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--target+:') + ;; + create-jms-host) + _command_args=('--host+:' '--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--port+:' '--property+:' '--target+:') + ;; + create-jms-resource) + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:') + ;; + create-jmsdest) + _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:' '--target+:') + ;; + create-jndi-resource) + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--jndilookupname+:' '--port+:' '--property+:' '--restype+:' '--target+:') + ;; + create-jvm-options) + _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:') + ;; + create-lifecycle-module) + _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--host+:' '--loadorder+:' '--port+:' '--property+:' '--target+:') + ;; + create-local-instance) + _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)') + ;; + create-message-security-provider) + _command_args=('--classname+:' '--host+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--port+:' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:') + ;; + create-network-listener) + _command_args=('--address+:' '--enabled+:enabled:(true false)' '--host+:' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--port+:' '--protocol+:' '--target+:' '--threadpool+:' '--transport+:') + ;; + create-node-config) + _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:') + ;; + create-node-dcom) + _command_args=('--archive+:' '--force+:force:(true false)' '--host+:' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') + ;; + create-node-ssh) + _command_args=('--archive+:' '--force+:force:(true false)' '--host+:' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') + ;; + create-password-alias) + _command_args=('--aliaspassword+:' '--host+:' '--port+:') + ;; + create-profiler) + _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--host+:' '--nativelibrarypath+:' '--port+:' '--property+:' '--target+:') + ;; + create-protocol) + _command_args=('--host+:' '--port+:' '--securityenabled+:securityenabled:(true false)' '--target+:') + ;; + create-protocol-filter) + _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:') + ;; + create-protocol-finder) + _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:' '--targetprotocol+:') + ;; + create-resource-adapter-config) + _command_args=('--host+:' '--objecttype+:' '--port+:' '--property+:' '--target+:' '--threadpoolid+:') + ;; + create-resource-ref) + _command_args=('--enabled+:enabled:(true false)' '--host+:' '--port+:' '--target+:') + ;; + create-service) + _command_args=('--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:node:_asadmin_nodes' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') + ;; + create-ssl) + _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--host+:' '--port+:' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') + ;; + create-system-properties) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + create-threadpool) + _command_args=('--host+:' '--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--port+:' '--target+:' '--workqueues+:') + ;; + create-transport) + _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--host+:' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--port+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:') + ;; + create-virtual-server) + _command_args=('--defaultwebmodule+:' '--host+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--port+:' '--property+:' '--state+:state:(on off disabled)' '--target+:') + ;; + delete-admin-object) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-application-ref) + _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:') + ;; + delete-audit-module) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-auth-realm) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-config) + _command_args=('--host+:' '--port+:') + ;; + delete-connector-connection-pool) + _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:') + ;; + delete-connector-resource) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-connector-security-map) + _command_args=('--host+:' '--poolname+:' '--port+:' '--target+:') + ;; + delete-connector-work-security-map) + _command_args=('--host+:' '--port+:' '--raname+:') + ;; + delete-custom-resource) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-domain) + _command_args=('--domaindir+:') + ;; + delete-file-user) + _command_args=('--authrealmname+:' '--host+:' '--port+:' '--target+:') + ;; + delete-http) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-http-health-checker) + _command_args=('--config+:' '--host+:' '--port+:') + ;; + delete-http-lb-ref) + _command_args=('--config+:' '--force+:' '--host+:' '--lbname+:' '--port+:') + ;; + delete-http-listener) + _command_args=('--host+:' '--port+:' '--secure+:' '--target+:') + ;; + delete-http-redirect) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-iiop-listener) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-instance) + _command_args=('--host+:' '--port+:' '--terse+:terse:(true false)') + ;; + delete-jacc-provider) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-javamail-resource) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-jdbc-connection-pool) + _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:') + ;; + delete-jdbc-resource) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-jms-host) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-jms-resource) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-jmsdest) + _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:') + ;; + delete-jndi-resource) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-jvm-options) + _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:') + ;; + delete-lifecycle-module) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-local-instance) + _command_args=('--node+:node:_asadmin_nodes' '--nodedir+:') + ;; + delete-log-levels) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-message-security-provider) + _command_args=('--host+:' '--layer+:' '--port+:' '--target+:') + ;; + delete-network-listener) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-node-config) + _command_args=('--host+:' '--port+:') + ;; + delete-node-dcom) + _command_args=('--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)') + ;; + delete-node-ssh) + _command_args=('--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)') + ;; + delete-password-alias) + _command_args=('--host+:' '--port+:') + ;; + delete-profiler) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-protocol) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-protocol-filter) + _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:') + ;; + delete-protocol-finder) + _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:') + ;; + delete-resource-adapter-config) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-resource-ref) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-ssl) + _command_args=('--host+:' '--port+:' '--target+:' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') + ;; + delete-system-property) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-threadpool) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-transport) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + delete-virtual-server) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + deploy) + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + ;; + deploydir) + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + ;; + disable) + _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:') + ;; + disable-http-lb-application) + _command_args=('--host+:' '--name+:' '--port+:' '--timeout+:') + ;; + disable-http-lb-server) + _command_args=('--host+:' '--port+:' '--timeout+:') + ;; + disable-monitoring) + _command_args=('--host+:' '--modules+:' '--port+:' '--target+:') + ;; + disable-secure-admin) + _command_args=('--host+:' '--port+:') + ;; + enable) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + enable-http-lb-application) + _command_args=('--host+:' '--name+:' '--port+:') + ;; + enable-http-lb-server) + _command_args=('--host+:' '--port+:') + ;; + enable-monitoring) + _command_args=('--dtrace+:dtrace:(true false)' '--host+:' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--port+:' '--target+:') + ;; + enable-secure-admin) + _command_args=('--adminalias+:' '--host+:' '--instancealias+:' '--port+:') + ;; + export-http-lb-config) + _command_args=('--config+:' '--host+:' '--lbname+:' '--lbtargets+:' '--port+:' '--property+:' '--retrievefile+:retrievefile:(true false)') + ;; + export-sync-bundle) + _command_args=('--host+:' '--port+:' '--retrieve+:retrieve:(true false)' '--target+:') + ;; + flush-connection-pool) + _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:') + ;; + flush-jmsdest) + _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:') + ;; + freeze-transaction-service) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + generate-domain-schema) + _command_args=('--format+:' '--host+:' '--port+:' '--showdeprecated+:showdeprecated:(true false)' '--showsubclasses+:showsubclasses:(true false)') + ;; + generate-jvm-report) + _command_args=('--host+:' '--port+:' '--target+:' '--type+:type:(summary thread class memory log)') + ;; + get) + _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:') + ;; + get-client-stubs) + _command_args=('--appname+:' '--host+:' '--port+:') + ;; + get-health) + _command_args=('--host+:' '--port+:') + ;; + help) + _describe -t help-commands "asadmin help command" _1st_arguments + ;; + import-sync-bundle) + _command_args=('--instance+:' '--node+:node:_asadmin_nodes' '--nodedir+:') + ;; + install-node) + _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') + ;; + install-node-dcom) + _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--windowsdomain+:' '--windowsuser+:') + ;; + install-node-ssh) + _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') + ;; + jms-ping) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list) + _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:') + ;; + list-admin-objects) + _command_args=('--host+:' '--port+:') + ;; + list-application-refs) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') + ;; + list-applications) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') + ;; + list-audit-modules) + _command_args=('--host+:' '--port+:') + ;; + list-auth-realms) + _command_args=('--host+:' '--port+:') + ;; + list-backups) + _command_args=('--backupconfig+:' '--backupdir+:' '--domaindir+:' '--long+:long:(true false)') + ;; + list-clusters) + _command_args=('--host+:' '--port+:') + ;; + list-commands) + _command_args=('--localonly+:localonly:(true false)' '--remoteonly+:remoteonly:(true false)') + ;; + list-components) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') + ;; + list-configs) + _command_args=('--host+:' '--port+:') + ;; + list-connector-connection-pools) + _command_args=('--host+:' '--port+:') + ;; + list-connector-resources) + _command_args=('--host+:' '--port+:') + ;; + list-connector-security-maps) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--securitymap+:' '--target+:') + ;; + list-connector-work-security-maps) + _command_args=('--host+:' '--port+:' '--securitymap+:') + ;; + list-containers) + _command_args=('--host+:' '--port+:') + ;; + list-custom-resources) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-descriptors) + _command_args=('--host+:' '--port+:') + ;; + list-domains) + _command_args=('--domaindir+:') + ;; + list-file-groups) + _command_args=('--authrealmname+:' '--host+:' '--name+:' '--port+:') + ;; + list-file-users) + _command_args=('--authrealmname+:' '--host+:' '--port+:') + ;; + list-http-lb-configs) + _command_args=('--host+:' '--port+:') + ;; + list-http-listeners) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:') + ;; + list-iiop-listeners) + _command_args=('--host+:' '--port+:') + ;; + list-instances) + _command_args=('--host+:' '--long+:long:(true false)' '--nostatus+:nostatus:(true false)' '--port+:' '--standaloneonly+:standaloneonly:(true false)' '--timeoutmsec+:') + ;; + list-jacc-providers) + _command_args=('--host+:' '--port+:') + ;; + list-javamail-resources) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-jdbc-connection-pools) + _command_args=('--host+:' '--port+:') + ;; + list-jdbc-resources) + _command_args=('--host+:' '--port+:') + ;; + list-jms-hosts) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-jms-resources) + _command_args=('--host+:' '--port+:' '--restype+:') + ;; + list-jmsdest) + _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:') + ;; + list-jndi-entries) + _command_args=('--context+:' '--host+:' '--port+:') + ;; + list-jndi-resources) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-jvm-options) + _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:') + ;; + list-libraries) + _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)') + ;; + list-lifecycle-modules) + _command_args=('--host+:' '--port+:' '--terse+:terse:(true false)') + ;; + list-log-attributes) + _command_args=('--host+:' '--port+:') + ;; + list-log-levels) + _command_args=('--host+:' '--port+:') + ;; + list-message-security-providers) + _command_args=('--host+:' '--layer+:layer:(SOAP HttpServlet)' '--port+:') + ;; + list-modules) + _command_args=('--host+:' '--port+:') + ;; + list-network-listeners) + _command_args=('--host+:' '--port+:') + ;; + list-nodes) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') + ;; + list-nodes-config) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') + ;; + list-nodes-dcom) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') + ;; + list-nodes-ssh) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') + ;; + list-password-aliases) + _command_args=('--host+:' '--port+:') + ;; + list-persistence-types) + _command_args=('--host+:' '--port+:' '--type+:') + ;; + list-protocol-filters) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-protocol-finders) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-protocols) + _command_args=('--host+:' '--port+:') + ;; + list-resource-adapter-configs) + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--raname+:') + ;; + list-resource-refs) + _command_args=('--host+:' '--port+:') + ;; + list-sub-components) + _command_args=('--appname+:' '--host+:' '--port+:' '--resources+:resources:(true false)' '--terse+:terse:(true false)' '--type+:') + ;; + list-supported-cipher-suites) + _command_args=('--host+:' '--port+:') + ;; + list-system-properties) + _command_args=('--host+:' '--port+:') + ;; + list-threadpools) + _command_args=('--host+:' '--port+:') + ;; + list-timers) + _command_args=('--host+:' '--port+:') + ;; + list-transports) + _command_args=('--host+:' '--port+:') + ;; + list-virtual-servers) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + list-web-context-param) + _command_args=('--host+:' '--name+:' '--port+:') + ;; + list-web-env-entry) + _command_args=('--host+:' '--name+:' '--port+:') + ;; + login) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + migrate-timers) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + monitor) + _command_args=('--filename+:filename:directory:_files' '--filter+:' '--interval+:' '--type+:') + ;; + multimode) + _command_args=('--encoding+:' '--file+:file:directory:_files' '--printprompt+:printprompt:(true false)') + ;; + ping-connection-pool) + _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:' '--target+:') + ;; + ping-node-dcom) + _command_args=('--host+:' '--port+:' '--validate+:validate:(true false)') + ;; + ping-node-ssh) + _command_args=('--host+:' '--port+:' '--validate+:validate:(true false)') + ;; + recover-transactions) + _command_args=('--host+:' '--port+:' '--target+:' '--transactionlogdir+:') + ;; + redeploy) + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + ;; + remove-library) + _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)') + ;; + restart-domain) + _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') + ;; + restart-instance) + _command_args=('--debug+:' '--host+:' '--port+:') + ;; + restart-local-instance) + _command_args=('--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:') + ;; + restore-domain) + _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)') + ;; + rollback-transaction) + _command_args=('--host+:' '--port+:' '--target+:' '--transaction_id+:') + ;; + rotate-log) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + set) + _command_args=('--host+:' '--port+:') + ;; + set-log-attributes) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + set-log-levels) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + set-web-context-param) + _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--value+:') + ;; + set-web-env-entry) + _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--type+:' '--value+:') + ;; + setup-ssh) + _command_args=('--generatekey+:generatekey:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshpublickeyfile+:' '--sshuser+:') + ;; + show-component-status) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + start-cluster) + _command_args=('--autohadboverride+:autohadboverride:(true false)' '--host+:' '--port+:' '--verbose+:verbose:(true false)') + ;; + start-database) + _command_args=('--dbhome+:' '--dbhost+:' '--dbport+:' '--jvmoptions+:') + ;; + start-domain) + _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--upgrade+:upgrade:(true false)' '--verbose+:verbose:(true false)') + ;; + start-instance) + _command_args=('--debug+:debug:(true false)' '--host+:' '--port+:' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)') + ;; + start-local-instance) + _command_args=('--debug+:debug:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)') + ;; + stop-cluster) + _command_args=('--autohadboverride+:autohadboverride:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:' '--verbose+:verbose:(true false)') + ;; + stop-database) + _command_args=('--dbhost+:' '--dbport+:' '--dbuser+:') + ;; + stop-domain) + _command_args=('--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') + ;; + stop-instance) + _command_args=('--force+:force:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:') + ;; + stop-local-instance) + _command_args=('--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:') + ;; + test-upgrade) + _command_args=('--host+:' '--port+:') + ;; + undeploy) + _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:') + ;; + unfreeze-transaction-service) + _command_args=('--host+:' '--port+:' '--target+:') + ;; + uninstall-node) + _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') + ;; + uninstall-node-dcom) + _command_args=('--force+:force:(true false)' '--installdir+:' '--windowsdomain+:' '--windowsuser+:') + ;; + uninstall-node-ssh) + _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') + ;; + unset-web-context-param) + _command_args=('--host+:' '--name+:' '--port+:') + ;; + unset-web-env-entry) + _command_args=('--host+:' '--name+:' '--port+:') + ;; + update-connector-security-map) + _command_args=('--addprincipals+:' '--addusergroups+:' '--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--removeprincipals+:' '--removeusergroups+:' '--target+:') + ;; + update-connector-work-security-map) + _command_args=('--addgroups+:' '--addprincipals+:' '--host+:' '--port+:' '--raname+:' '--removegroups+:' '--removeprincipals+:') + ;; + update-file-user) + _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:' '--userpassword+:') + ;; + update-node-config) + _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:') + ;; + update-node-dcom) + _command_args=('--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') + ;; + update-node-ssh) + _command_args=('--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') + ;; + update-password-alias) + _command_args=('--aliaspassword+:' '--host+:' '--port+:') + ;; + uptime) + _command_args=('--host+:' '--milliseconds+:milliseconds:(true false)' '--port+:') + ;; + validate-dcom) + _command_args=('--host+:' '--port+:' '--remotetestdir+:' '--verbose+:verbose:(true false)' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') + ;; + validate-multicast) + _command_args=('--bindaddress+:' '--multicastaddress+:' '--multicastport+:' '--sendperiod+:' '--timeout+:' '--timetolive+:' '--verbose+:verbose:(true false)') + ;; + verify-domain-xml) + _command_args=('--domaindir+:') + ;; + version) + _command_args=('--local+:local:(true false)' '--terse+:terse:(true false)' '--verbose+:verbose:(true false)') + ;; esac + +_asadmin_instances() { + compadd $(command asadmin list-instances --terse --nostatus domain) +} + +_asadmin_libraries() { + compadd $(command asadmin list-libraries --terse) +} + +_asadmin_nodes() { + compadd $(command asadmin list-nodes --terse) +} + +compadd '--help' _arguments \ $_command_args \ - && return 0 + && return 0; From 0ebeb562523a33e636309a07b37fc1c291643f22 Mon Sep 17 00:00:00 2001 From: fred-o Date: Tue, 24 Jul 2012 16:16:55 +0200 Subject: [PATCH 22/36] node completion --- plugins/glassfish/_asadmin | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index b29d65d3b..32b15b61d 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -559,13 +559,13 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--target+:') ;; delete-node-config) - _command_args=('--host+:' '--port+:') + _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--port+:') ;; delete-node-dcom) - _command_args=('--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)') + _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)') ;; delete-node-ssh) - _command_args=('--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)') + _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)') ;; delete-password-alias) _command_args=('--host+:' '--port+:') @@ -889,10 +889,10 @@ case "$words[1]" in _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:' '--target+:') ;; ping-node-dcom) - _command_args=('--host+:' '--port+:' '--validate+:validate:(true false)') + _command_args=('*:nodes:_asadmin_nodes_dcom' '--host+:' '--port+:' '--validate+:validate:(true false)') ;; ping-node-ssh) - _command_args=('--host+:' '--port+:' '--validate+:validate:(true false)') + _command_args=('*:nodes:_asadmin_nodes_ssh' '--host+:' '--port+:' '--validate+:validate:(true false)') ;; recover-transactions) _command_args=('--host+:' '--port+:' '--target+:' '--transactionlogdir+:') @@ -1006,13 +1006,13 @@ case "$words[1]" in _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:' '--userpassword+:') ;; update-node-config) - _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:') + _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:') ;; update-node-dcom) - _command_args=('--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') + _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:') ;; update-node-ssh) - _command_args=('--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') + _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:') ;; update-password-alias) _command_args=('--aliaspassword+:' '--host+:' '--port+:') @@ -1047,6 +1047,18 @@ _asadmin_nodes() { compadd $(command asadmin list-nodes --terse) } +_asadmin_nodes_config() { + compadd $(command asadmin list-nodes-config --terse) +} + +_asadmin_nodes_dcom() { + compadd $(command asadmin list-nodes-dcom --terse) +} + +_asadmin_nodes_ssh() { + compadd $(command asadmin list-nodes-ssh --terse) +} + compadd '--help' _arguments \ $_command_args \ From fb3cae1b8f9740e03c8e107727c810feb97b5ec2 Mon Sep 17 00:00:00 2001 From: fred-o Date: Tue, 31 Jul 2012 15:02:12 +0200 Subject: [PATCH 23/36] instance and cluster completion --- plugins/glassfish/_asadmin | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index 32b15b61d..1623cd274 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -307,7 +307,7 @@ case "$words[1]" in _command_args=('--clustertype+:' '--configstoretype+:' '--dburl+:' '--dbuser+:' '--dbvendor+:' '--host+:' '--jmsdbpassword+:' '--messagestoretype+:' '--port+:' '--property+:') ;; configure-lb-weight) - _command_args=('--cluster+:' '--host+:' '--port+:') + _command_args=('--cluster+:cluster:_asadmin_clusters' '--host+:' '--port+:') ;; configure-ldap-for-admin) _command_args=('--basedn+:' '--host+:' '--ldap-group+:' '--port+:' '--target+:' '--url+:') @@ -370,7 +370,7 @@ case "$words[1]" in _command_args=('--enabled+:enabled:(true false)' '--host+:' '--iiopport+:' '--listeneraddress+:' '--port+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:') ;; create-instance) - _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--host+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--port+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)') + _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--host+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--port+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)') ;; create-jacc-provider) _command_args=('--host+:' '--policyconfigfactoryclass+:' '--policyproviderclass+:' '--port+:' '--property+:' '--target+:') @@ -403,7 +403,7 @@ case "$words[1]" in _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--host+:' '--loadorder+:' '--port+:' '--property+:' '--target+:') ;; create-local-instance) - _command_args=('--checkports+:checkports:(true false)' '--cluster+:' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)') + _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)') ;; create-message-security-provider) _command_args=('--classname+:' '--host+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--port+:' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:') @@ -442,7 +442,7 @@ case "$words[1]" in _command_args=('--enabled+:enabled:(true false)' '--host+:' '--port+:' '--target+:') ;; create-service) - _command_args=('--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:node:_asadmin_nodes' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') + _command_args=('*:instances:_asadmin_instances' '--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:node:_asadmin_nodes' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') ;; create-ssl) _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--host+:' '--port+:' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') @@ -514,7 +514,7 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--target+:') ;; delete-instance) - _command_args=('--host+:' '--port+:' '--terse+:terse:(true false)') + _command_args=('*:instances:_asadmin_instances' '--host+:' '--port+:' '--terse+:terse:(true false)') ;; delete-jacc-provider) _command_args=('--host+:' '--port+:' '--target+:') @@ -547,7 +547,7 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--target+:') ;; delete-local-instance) - _command_args=('--node+:node:_asadmin_nodes' '--nodedir+:') + _command_args=('*:instances:_asadmin_instances' '--node+:node:_asadmin_nodes' '--nodedir+:') ;; delete-log-levels) _command_args=('--host+:' '--port+:' '--target+:') @@ -907,10 +907,10 @@ case "$words[1]" in _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') ;; restart-instance) - _command_args=('--debug+:' '--host+:' '--port+:') + _command_args=('*:instances:_asadmin_instances' '--debug+:' '--host+:' '--port+:') ;; restart-local-instance) - _command_args=('--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:') + _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:') ;; restore-domain) _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)') @@ -943,7 +943,7 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--target+:') ;; start-cluster) - _command_args=('--autohadboverride+:autohadboverride:(true false)' '--host+:' '--port+:' '--verbose+:verbose:(true false)') + _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--port+:' '--verbose+:verbose:(true false)') ;; start-database) _command_args=('--dbhome+:' '--dbhost+:' '--dbport+:' '--jvmoptions+:') @@ -952,13 +952,13 @@ case "$words[1]" in _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--upgrade+:upgrade:(true false)' '--verbose+:verbose:(true false)') ;; start-instance) - _command_args=('--debug+:debug:(true false)' '--host+:' '--port+:' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)') + _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--host+:' '--port+:' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)') ;; start-local-instance) - _command_args=('--debug+:debug:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)') + _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)') ;; stop-cluster) - _command_args=('--autohadboverride+:autohadboverride:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:' '--verbose+:verbose:(true false)') + _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:' '--verbose+:verbose:(true false)') ;; stop-database) _command_args=('--dbhost+:' '--dbport+:' '--dbuser+:') @@ -967,10 +967,10 @@ case "$words[1]" in _command_args=('--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') ;; stop-instance) - _command_args=('--force+:force:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:') + _command_args=('*:instances:_asadmin_instances' '--force+:force:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:') ;; stop-local-instance) - _command_args=('--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:') + _command_args=('*:instances:_asadmin_instances' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:') ;; test-upgrade) _command_args=('--host+:' '--port+:') @@ -1035,6 +1035,10 @@ case "$words[1]" in esac +_asadmin_clusters() { + compadd $(command asadmin list-clusters --terse | sed 's/ .*//') +} + _asadmin_instances() { compadd $(command asadmin list-instances --terse --nostatus domain) } From a4e6a2ce9fe2edd98dd654763fac87cc08660dc3 Mon Sep 17 00:00:00 2001 From: fred-o Date: Tue, 31 Jul 2012 16:59:56 +0200 Subject: [PATCH 24/36] completion of targets --- plugins/glassfish/_asadmin | 323 +++++++++++++++++++++++-------------- 1 file changed, 200 insertions(+), 123 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index 1623cd274..9d6b5687b 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -283,7 +283,7 @@ case "$words[1]" in _command_args=('*:directory:_files' '--host+:' '--port+:' '--type+:type:(common ext app)') ;; add-resources) - _command_args=('*:directory:_files' '--host+:' '--port+:' '--target+:') + _command_args=('*:directory:_files' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; apply-http-lb-changes) _command_args=('--host+:' '--ping+:' '--port+:') @@ -310,28 +310,28 @@ case "$words[1]" in _command_args=('--cluster+:cluster:_asadmin_clusters' '--host+:' '--port+:') ;; configure-ldap-for-admin) - _command_args=('--basedn+:' '--host+:' '--ldap-group+:' '--port+:' '--target+:' '--url+:') + _command_args=('--basedn+:' '--host+:' '--ldap-group+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--url+:') ;; copy-config) _command_args=('--host+:' '--port+:' '--systemproperties+:') ;; create-admin-object) - _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--raname+:' '--restype+:' '--target+:') + _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--raname+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-application-ref) - _command_args=('--enabled+:enabled:(true false)' '--host+:' '--lbenabled+:lbenabled:(true false)' '--port+:' '--target+:' '--virtualservers+:') + _command_args=('--enabled+:enabled:(true false)' '--host+:' '--lbenabled+:lbenabled:(true false)' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance' '--virtualservers+:') ;; create-audit-module) - _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:') + _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-auth-realm) - _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:') + _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-connector-connection-pool) _command_args=('--associatewiththread+:associatewiththread:(true false)' '--connectiondefinition+:' '--creationretryattempts+:' '--creationretryinterval+:' '--description+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--raname+:' '--steadypoolsize+:' '--target+:' '--transactionsupport+:transactionsupport:(XATransaction LocalTransaction NoTransaction)' '--validateatmostonceperiod+:') ;; create-connector-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--objecttype+:' '--poolname+:' '--port+:' '--property+:' '--target+:') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--objecttype+:' '--poolname+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; create-connector-security-map) _command_args=('--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--principals+:' '--target+:' '--usergroups+:') @@ -340,76 +340,76 @@ case "$words[1]" in _command_args=('--description+:' '--groupsmap+:' '--host+:' '--port+:' '--principalsmap+:' '--raname+:') ;; create-custom-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; create-domain) _command_args=('--adminport+:' '--checkports+:checkports:(true false)' '--domaindir+:' '--domainproperties+:' '--instanceport+:' '--keytooloptions+:' '--nopassword+:nopassword:(true false)' '--portbase+:' '--profile+:' '--savelogin+:savelogin:(true false)' '--savemasterpassword+:savemasterpassword:(true false)' '--template+:' '--usemasterpassword+:usemasterpassword:(true false)') ;; create-file-user) - _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:' '--userpassword+:') + _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--userpassword+:') ;; create-http) - _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--host+:' '--max-connection+:' '--port+:' '--request-timeout-seconds+:' '--servername+:' '--target+:' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)') + _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--host+:' '--max-connection+:' '--port+:' '--request-timeout-seconds+:' '--servername+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)') ;; create-http-health-checker) _command_args=('--config+:' '--host+:' '--interval+:' '--port+:' '--timeout+:' '--url+:') ;; create-http-lb) - _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--port+:' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:') + _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--port+:' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:target:_asadmin_targets_cluster_standalone_instance') ;; create-http-lb-ref) _command_args=('--config+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbname+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--port+:') ;; create-http-listener) - _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--host+:' '--listeneraddress+:' '--listenerport+:' '--port+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:' '--xpowered+:xpowered:(true false)') + _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--host+:' '--listeneraddress+:' '--listenerport+:' '--port+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--xpowered+:xpowered:(true false)') ;; create-http-redirect) - _command_args=('--host+:' '--port+:' '--redirect-port+:' '--secure-redirect+:' '--target+:') + _command_args=('--host+:' '--port+:' '--redirect-port+:' '--secure-redirect+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-iiop-listener) - _command_args=('--enabled+:enabled:(true false)' '--host+:' '--iiopport+:' '--listeneraddress+:' '--port+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:') + _command_args=('--enabled+:enabled:(true false)' '--host+:' '--iiopport+:' '--listeneraddress+:' '--port+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-instance) _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--host+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--port+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)') ;; create-jacc-provider) - _command_args=('--host+:' '--policyconfigfactoryclass+:' '--policyproviderclass+:' '--port+:' '--property+:' '--target+:') + _command_args=('--host+:' '--policyconfigfactoryclass+:' '--policyproviderclass+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-javamail-resource) - _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--host+:' '--mailhost+:' '--mailuser+:' '--port+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:' '--transprotocol+:' '--transprotocolclass+:') + _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--host+:' '--mailhost+:' '--mailuser+:' '--port+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--transprotocol+:' '--transprotocolclass+:') ;; create-jdbc-connection-pool) _command_args=('--allownoncomponentcallers+:allownoncomponentcallers:(true false)' '--associatewiththread+:associatewiththread:(true false)' '--creationretryattempts+:' '--creationretryinterval+:' '--datasourceclassname+:' '--description+:' '--driverclassname+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--initsql+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--isisolationguaranteed+:isisolationguaranteed:(true false)' '--isolationlevel+:' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--nontransactionalconnections+:nontransactionalconnections:(true false)' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--restype+:restype:(javax.sql.DataSource javax.sql.XADataSource javax.sql.ConnectionPoolDataSource java.sql.Driver)' '--sqltracelisteners+:' '--statementcachesize+:' '--statementleakreclaim+:statementleakreclaim:(true false)' '--statementleaktimeout+:' '--statementtimeout+:' '--steadypoolsize+:' '--target+:' '--validateatmostonceperiod+:' '--validationclassname+:' '--validationmethod+:validationmethod:(auto-commit meta-data table custom-validation)' '--validationtable+:' '--wrapjdbcobjects+:wrapjdbcobjects:(true false)') ;; create-jdbc-resource) - _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--target+:') + _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; create-jms-host) - _command_args=('--host+:' '--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--port+:' '--property+:' '--target+:') + _command_args=('--host+:' '--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-jms-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; create-jmsdest) - _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:' '--target+:') + _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-jndi-resource) - _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--jndilookupname+:' '--port+:' '--property+:' '--restype+:' '--target+:') + _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--jndilookupname+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; create-jvm-options) - _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:') + _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-lifecycle-module) - _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--host+:' '--loadorder+:' '--port+:' '--property+:' '--target+:') + _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--host+:' '--loadorder+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; create-local-instance) _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)') ;; create-message-security-provider) - _command_args=('--classname+:' '--host+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--port+:' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:') + _command_args=('--classname+:' '--host+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--port+:' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-network-listener) - _command_args=('--address+:' '--enabled+:enabled:(true false)' '--host+:' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--port+:' '--protocol+:' '--target+:' '--threadpool+:' '--transport+:') + _command_args=('--address+:' '--enabled+:enabled:(true false)' '--host+:' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--threadpool+:' '--transport+:') ;; create-node-config) _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:') @@ -424,52 +424,52 @@ case "$words[1]" in _command_args=('--aliaspassword+:' '--host+:' '--port+:') ;; create-profiler) - _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--host+:' '--nativelibrarypath+:' '--port+:' '--property+:' '--target+:') + _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--host+:' '--nativelibrarypath+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-protocol) - _command_args=('--host+:' '--port+:' '--securityenabled+:securityenabled:(true false)' '--target+:') + _command_args=('--host+:' '--port+:' '--securityenabled+:securityenabled:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-protocol-filter) - _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:') + _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; create-protocol-finder) - _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:' '--targetprotocol+:') + _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--targetprotocol+:') ;; create-resource-adapter-config) _command_args=('--host+:' '--objecttype+:' '--port+:' '--property+:' '--target+:' '--threadpoolid+:') ;; create-resource-ref) - _command_args=('--enabled+:enabled:(true false)' '--host+:' '--port+:' '--target+:') + _command_args=('--enabled+:enabled:(true false)' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance') ;; create-service) _command_args=('*:instances:_asadmin_instances' '--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:node:_asadmin_nodes' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:') ;; create-ssl) - _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--host+:' '--port+:' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') + _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--host+:' '--port+:' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') ;; create-system-properties) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance') ;; create-threadpool) - _command_args=('--host+:' '--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--port+:' '--target+:' '--workqueues+:') + _command_args=('--host+:' '--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--workqueues+:') ;; create-transport) - _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--host+:' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--port+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:') + _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--host+:' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--port+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:') ;; create-virtual-server) - _command_args=('--defaultwebmodule+:' '--host+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--port+:' '--property+:' '--state+:state:(on off disabled)' '--target+:') + _command_args=('--defaultwebmodule+:' '--host+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--port+:' '--property+:' '--state+:state:(on off disabled)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-admin-object) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-application-ref) - _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:') + _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance') ;; delete-audit-module) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-auth-realm) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-config) _command_args=('--host+:' '--port+:') @@ -478,7 +478,7 @@ case "$words[1]" in _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:') ;; delete-connector-resource) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-connector-security-map) _command_args=('--host+:' '--poolname+:' '--port+:' '--target+:') @@ -487,16 +487,16 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--raname+:') ;; delete-custom-resource) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-domain) _command_args=('--domaindir+:') ;; delete-file-user) - _command_args=('--authrealmname+:' '--host+:' '--port+:' '--target+:') + _command_args=('--authrealmname+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-http) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-http-health-checker) _command_args=('--config+:' '--host+:' '--port+:') @@ -505,58 +505,58 @@ case "$words[1]" in _command_args=('--config+:' '--force+:' '--host+:' '--lbname+:' '--port+:') ;; delete-http-listener) - _command_args=('--host+:' '--port+:' '--secure+:' '--target+:') + _command_args=('--host+:' '--port+:' '--secure+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-http-redirect) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-iiop-listener) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-instance) _command_args=('*:instances:_asadmin_instances' '--host+:' '--port+:' '--terse+:terse:(true false)') ;; delete-jacc-provider) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-javamail-resource) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-jdbc-connection-pool) _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:') ;; delete-jdbc-resource) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-jms-host) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-jms-resource) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-jmsdest) - _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:') + _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-jndi-resource) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-jvm-options) - _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:') + _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-lifecycle-module) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; delete-local-instance) _command_args=('*:instances:_asadmin_instances' '--node+:node:_asadmin_nodes' '--nodedir+:') ;; delete-log-levels) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-message-security-provider) - _command_args=('--host+:' '--layer+:' '--port+:' '--target+:') + _command_args=('--host+:' '--layer+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-network-listener) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-node-config) _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--port+:') @@ -571,46 +571,46 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; delete-profiler) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-protocol) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-protocol-filter) - _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:') + _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-protocol-finder) - _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:') + _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-resource-adapter-config) _command_args=('--host+:' '--port+:' '--target+:') ;; delete-resource-ref) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance') ;; delete-ssl) - _command_args=('--host+:' '--port+:' '--target+:' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)') ;; delete-system-property) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance') ;; delete-threadpool) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-transport) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; delete-virtual-server) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; deploy) - _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; deploydir) - _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; disable) - _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:') + _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; disable-http-lb-application) _command_args=('--host+:' '--name+:' '--port+:' '--timeout+:') @@ -619,13 +619,13 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--timeout+:') ;; disable-monitoring) - _command_args=('--host+:' '--modules+:' '--port+:' '--target+:') + _command_args=('--host+:' '--modules+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; disable-secure-admin) _command_args=('--host+:' '--port+:') ;; enable) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; enable-http-lb-application) _command_args=('--host+:' '--name+:' '--port+:') @@ -634,7 +634,7 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; enable-monitoring) - _command_args=('--dtrace+:dtrace:(true false)' '--host+:' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--port+:' '--target+:') + _command_args=('--dtrace+:dtrace:(true false)' '--host+:' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; enable-secure-admin) _command_args=('--adminalias+:' '--host+:' '--instancealias+:' '--port+:') @@ -649,16 +649,16 @@ case "$words[1]" in _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:') ;; flush-jmsdest) - _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:') + _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; freeze-transaction-service) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance') ;; generate-domain-schema) _command_args=('--format+:' '--host+:' '--port+:' '--showdeprecated+:showdeprecated:(true false)' '--showsubclasses+:showsubclasses:(true false)') ;; generate-jvm-report) - _command_args=('--host+:' '--port+:' '--target+:' '--type+:type:(summary thread class memory log)') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--type+:type:(summary thread class memory log)') ;; get) _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:') @@ -685,25 +685,25 @@ case "$words[1]" in _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') ;; jms-ping) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance') ;; list) _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:') ;; list-admin-objects) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:') ;; list-application-refs) - _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') + _command_args=('*:targets:_asadmin_targets_cluster_das_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') ;; list-applications) - _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') + _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') ;; list-audit-modules) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:') ;; list-auth-realms) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:') ;; list-backups) _command_args=('--backupconfig+:' '--backupdir+:' '--domaindir+:' '--long+:long:(true false)') @@ -715,19 +715,19 @@ case "$words[1]" in _command_args=('--localonly+:localonly:(true false)' '--remoteonly+:remoteonly:(true false)') ;; list-components) - _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') + _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:') ;; list-configs) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:') ;; list-connector-connection-pools) _command_args=('--host+:' '--port+:') ;; list-connector-resources) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:') ;; list-connector-security-maps) - _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--securitymap+:' '--target+:') + _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--securitymap+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; list-connector-work-security-maps) _command_args=('--host+:' '--port+:' '--securitymap+:') @@ -736,7 +736,7 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; list-custom-resources) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; list-descriptors) _command_args=('--host+:' '--port+:') @@ -748,25 +748,25 @@ case "$words[1]" in _command_args=('--authrealmname+:' '--host+:' '--name+:' '--port+:') ;; list-file-users) - _command_args=('--authrealmname+:' '--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--authrealmname+:' '--host+:' '--port+:') ;; list-http-lb-configs) _command_args=('--host+:' '--port+:') ;; list-http-listeners) - _command_args=('--host+:' '--long+:long:(true false)' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:') ;; list-iiop-listeners) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:') ;; list-instances) _command_args=('--host+:' '--long+:long:(true false)' '--nostatus+:nostatus:(true false)' '--port+:' '--standaloneonly+:standaloneonly:(true false)' '--timeoutmsec+:') ;; list-jacc-providers) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:') ;; list-javamail-resources) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; list-jdbc-connection-pools) _command_args=('--host+:' '--port+:') @@ -775,43 +775,43 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; list-jms-hosts) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; list-jms-resources) - _command_args=('--host+:' '--port+:' '--restype+:') + _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--port+:' '--restype+:') ;; list-jmsdest) - _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:') + _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--desttype+:' '--host+:' '--port+:' '--property+:') ;; list-jndi-entries) - _command_args=('--context+:' '--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--context+:' '--host+:' '--port+:') ;; list-jndi-resources) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; list-jvm-options) - _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:') + _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; list-libraries) _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)') ;; list-lifecycle-modules) - _command_args=('--host+:' '--port+:' '--terse+:terse:(true false)') + _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--port+:' '--terse+:terse:(true false)') ;; list-log-attributes) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:') ;; list-log-levels) _command_args=('--host+:' '--port+:') ;; list-message-security-providers) - _command_args=('--host+:' '--layer+:layer:(SOAP HttpServlet)' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--layer+:layer:(SOAP HttpServlet)' '--port+:') ;; list-modules) _command_args=('--host+:' '--port+:') ;; list-network-listeners) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:') ;; list-nodes) _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)') @@ -832,19 +832,19 @@ case "$words[1]" in _command_args=('--host+:' '--port+:' '--type+:') ;; list-protocol-filters) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; list-protocol-finders) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; list-protocols) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:') ;; list-resource-adapter-configs) _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--raname+:') ;; list-resource-refs) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_standalone_instance' '--host+:' '--port+:') ;; list-sub-components) _command_args=('--appname+:' '--host+:' '--port+:' '--resources+:resources:(true false)' '--terse+:terse:(true false)' '--type+:') @@ -853,19 +853,19 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; list-system-properties) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:') ;; list-threadpools) _command_args=('--host+:' '--port+:') ;; list-timers) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_das_standalone_instance' '--host+:' '--port+:') ;; list-transports) - _command_args=('--host+:' '--port+:') + _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:') ;; list-virtual-servers) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; list-web-context-param) _command_args=('--host+:' '--name+:' '--port+:') @@ -874,10 +874,10 @@ case "$words[1]" in _command_args=('--host+:' '--name+:' '--port+:') ;; login) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance') ;; migrate-timers) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das') ;; monitor) _command_args=('--filename+:filename:directory:_files' '--filter+:' '--interval+:' '--type+:') @@ -895,10 +895,10 @@ case "$words[1]" in _command_args=('*:nodes:_asadmin_nodes_ssh' '--host+:' '--port+:' '--validate+:validate:(true false)') ;; recover-transactions) - _command_args=('--host+:' '--port+:' '--target+:' '--transactionlogdir+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--transactionlogdir+:') ;; redeploy) - _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') + _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; remove-library) _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)') @@ -916,19 +916,19 @@ case "$words[1]" in _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)') ;; rollback-transaction) - _command_args=('--host+:' '--port+:' '--target+:' '--transaction_id+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--transaction_id+:') ;; rotate-log) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_standalone_instance') ;; set) _command_args=('--host+:' '--port+:') ;; set-log-attributes) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; set-log-levels) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance') ;; set-web-context-param) _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--value+:') @@ -940,7 +940,7 @@ case "$words[1]" in _command_args=('--generatekey+:generatekey:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshpublickeyfile+:' '--sshuser+:') ;; show-component-status) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance') ;; start-cluster) _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--port+:' '--verbose+:verbose:(true false)') @@ -976,10 +976,10 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; undeploy) - _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:') + _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; unfreeze-transaction-service) - _command_args=('--host+:' '--port+:' '--target+:') + _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance') ;; uninstall-node) _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:') @@ -1003,7 +1003,7 @@ case "$words[1]" in _command_args=('--addgroups+:' '--addprincipals+:' '--host+:' '--port+:' '--raname+:' '--removegroups+:' '--removeprincipals+:') ;; update-file-user) - _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:' '--userpassword+:') + _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--userpassword+:') ;; update-node-config) _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:') @@ -1039,10 +1039,18 @@ _asadmin_clusters() { compadd $(command asadmin list-clusters --terse | sed 's/ .*//') } +_asadmin_configs() { + compadd $(command asadmin list-configs --terse) +} + _asadmin_instances() { compadd $(command asadmin list-instances --terse --nostatus domain) } +_asadmin_instances_standalone() { + compadd $(command asadmin list-instances --terse --standaloneonly --nostatus domain) +} + _asadmin_libraries() { compadd $(command asadmin list-libraries --terse) } @@ -1063,6 +1071,75 @@ _asadmin_nodes_ssh() { compadd $(command asadmin list-nodes-ssh --terse) } +_asadmin_targets() { + _asadmin_instances + _asadmin_clusters + _asadmin_configs + compadd domain server +} + +_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance() { + _asadmin_instances + _asadmin_clusters + _asadmin_configs + compadd domain server +} + +_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance() { + _asadmin_instances + _asadmin_clusters + _asadmin_configs + compadd server +} + +_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance() { + _asadmin_instances + _asadmin_clusters + compadd domain server +} + +_asadmin_targets_cluster_clustered_instance_das_standalone_instance() { + _asadmin_instances + _asadmin_clusters + _asadmin_configs + compadd server +} + +_asadmin_targets_cluster_config_das_standalone_instance() { + _asadmin_instances_standalone + _asadmin_clusters + _asadmin_configs + compadd server +} + +_asadmin_targets_cluster_das_domain_standalone_instance() { + _asadmin_instances_standalone + _asadmin_clusters + compadd domain server +} + +_asadmin_targets_cluster_das_standalone_instance() { + _asadmin_instances_standalone + _asadmin_clusters + compadd server +} + +_asadmin_targets_clustered_instance_das() { + _asadmin_instances + compadd server +} + +_asadmin_targets_clustered_instance_das_standalone_instance() { + _asadmin_instances + compadd server +} + +_asadmin_targets_cluster_standalone_instance() { + _asadmin_clusters + _asadmin_instances_standalone +} + + compadd '--help' _arguments \ $_command_args \ From 8f0c617f6a7bdee3d6b3e61794f7035ceb90d545 Mon Sep 17 00:00:00 2001 From: fred-o Date: Fri, 3 Aug 2012 10:02:19 +0200 Subject: [PATCH 25/36] in hindsight, this is probably a bad idea --- plugins/glassfish/glassfish.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/glassfish/glassfish.plugin.zsh b/plugins/glassfish/glassfish.plugin.zsh index 49ca23299..fde2edb2a 100644 --- a/plugins/glassfish/glassfish.plugin.zsh +++ b/plugins/glassfish/glassfish.plugin.zsh @@ -1,3 +1,3 @@ # if there is a user named 'glassfish' on the system, we'll assume # that is the user asadmin should be run as -grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin' \ No newline at end of file +# grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin' \ No newline at end of file From c24d7f75d325b9d869036ecb06dcf020edec916c Mon Sep 17 00:00:00 2001 From: fred-o Date: Fri, 3 Aug 2012 10:02:27 +0200 Subject: [PATCH 26/36] library completion --- plugins/glassfish/_asadmin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index 9d6b5687b..e5401c918 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -901,7 +901,7 @@ case "$words[1]" in _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:') ;; remove-library) - _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)') + _command_args=('*:libraries:_asadmin_libraries' '--host+:' '--port+:' '--type+:type:(common ext app)') ;; restart-domain) _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)') From 265b2a559b60d1a36c63a82ab2c2071faf81e3fe Mon Sep 17 00:00:00 2001 From: fred-o Date: Fri, 3 Aug 2012 10:15:01 +0200 Subject: [PATCH 27/36] application completion --- plugins/glassfish/_asadmin | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin index e5401c918..a6a7af549 100644 --- a/plugins/glassfish/_asadmin +++ b/plugins/glassfish/_asadmin @@ -976,7 +976,7 @@ case "$words[1]" in _command_args=('--host+:' '--port+:') ;; undeploy) - _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') + _command_args=('*:applications:_asadmin_applications' '--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance') ;; unfreeze-transaction-service) _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance') @@ -1035,8 +1035,12 @@ case "$words[1]" in esac +_asadmin_applications() { + compadd $(command asadmin list-applications --terse | sed 's/\s.*//') +} + _asadmin_clusters() { - compadd $(command asadmin list-clusters --terse | sed 's/ .*//') + compadd $(command asadmin list-clusters --terse | sed 's/\s.*//') } _asadmin_configs() { From 97ec5de7244c419c4ca484f318e15062910247ba Mon Sep 17 00:00:00 2001 From: cybozuty Date: Mon, 3 Sep 2012 15:31:54 +0900 Subject: [PATCH 28/36] Rendering the 'vagrant box (remove|repackage)' completion code independant of Vagrant implementation details. --- plugins/vagrant/_vagrant | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant index 483b29c53..b161ba2be 100644 --- a/plugins/vagrant/_vagrant +++ b/plugins/vagrant/_vagrant @@ -43,7 +43,7 @@ __task_list () __box_list () { - _wanted application expl 'command' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g') + _wanted application expl 'command' compadd $(command vagrant box list | sed -e 's/ /\\ /g') } __vagrant-box () From 6a40557a8bc5411881682e3993333da8fbe64e68 Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Tue, 31 Dec 2013 14:54:34 +0100 Subject: [PATCH 29/36] Updates spectrum.zsh --- lib/spectrum.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/spectrum.zsh b/lib/spectrum.zsh index 166c942fb..b683aca29 100644 --- a/lib/spectrum.zsh +++ b/lib/spectrum.zsh @@ -19,17 +19,19 @@ for color in {000..255}; do BG[$color]="%{[48;5;${color}m%}" done + +ZSH_SPECTRUM_TEXT=${ZSH_SPECTRUM_TEXT:-Arma virumque cano Troiae qui primus ab oris} + # Show all 256 colors with color number function spectrum_ls() { for code in {000..255}; do - print -P -- "$code: %F{$code}Test%f" + print -P -- "$code: %F{$code}$ZSH_SPECTRUM_TEXT%f" done } # Show all 256 colors where the background is set to specific color function spectrum_bls() { for code in {000..255}; do - ((cc = code + 1)) - print -P -- "$BG[$code]$code: Test %{$reset_color%}" + print -P -- "$BG[$code]$code: $ZSH_SPECTRUM_TEXT %{$reset_color%}" done } From 56babe6538450f85ac2e8ef3dd04bf1654c46d75 Mon Sep 17 00:00:00 2001 From: Bob Williams Date: Wed, 26 Feb 2014 19:35:24 -0500 Subject: [PATCH 30/36] Adds command line aliases useful for dealing with JSON --- plugins/jsontools/jsontools.plugin.zsh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/jsontools/jsontools.plugin.zsh diff --git a/plugins/jsontools/jsontools.plugin.zsh b/plugins/jsontools/jsontools.plugin.zsh new file mode 100644 index 000000000..51578b349 --- /dev/null +++ b/plugins/jsontools/jsontools.plugin.zsh @@ -0,0 +1,14 @@ +# JSON Tools +# Adds command line aliases useful for dealing with JSON + +if [[ $(whence $JSONTOOLS_METHOD) = "" ]]; then + JSONTOOLS_METHOD="" +fi + +if [[ $(whence python) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xpython" ) ]]; then + alias pp_json='python -mjson.tool' +elif [[ $(whence ruby) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xruby" ) ]]; then + alias pp_json='ruby -e "require \"json\"; require \"yaml\"; puts JSON.parse(STDIN.read).to_yaml"' +fi + +unset JSONTOOLS_METHOD \ No newline at end of file From 185cb6e37352cc0d92042e35d259b0de3f5f3886 Mon Sep 17 00:00:00 2001 From: Bob Williams Date: Thu, 27 Feb 2014 10:56:07 -0500 Subject: [PATCH 31/36] adding support for node --- plugins/jsontools/jsontools.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/jsontools/jsontools.plugin.zsh b/plugins/jsontools/jsontools.plugin.zsh index 51578b349..7b6f8c585 100644 --- a/plugins/jsontools/jsontools.plugin.zsh +++ b/plugins/jsontools/jsontools.plugin.zsh @@ -5,7 +5,9 @@ if [[ $(whence $JSONTOOLS_METHOD) = "" ]]; then JSONTOOLS_METHOD="" fi -if [[ $(whence python) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xpython" ) ]]; then +if [[ $(whence node) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xnode" ) ]]; then + alias pp_json='node -e "console.log(JSON.stringify(process.argv[1]), null, 4)"' +elif [[ $(whence python) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xpython" ) ]]; then alias pp_json='python -mjson.tool' elif [[ $(whence ruby) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xruby" ) ]]; then alias pp_json='ruby -e "require \"json\"; require \"yaml\"; puts JSON.parse(STDIN.read).to_yaml"' From 12e30faaca13a2e931c4062fdc8a3589e8069460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Sun, 23 Mar 2014 02:03:12 +0100 Subject: [PATCH 32/36] Fix export syntax of $GREP_OPTIONS Fixes #2641, #2642 --- lib/grep.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/grep.zsh b/lib/grep.zsh index 25345bd06..977435ee4 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -8,5 +8,6 @@ GREP_OPTIONS= for PATTERN in .cvs .git .hg .svn; do GREP_OPTIONS+="--exclude-dir=$PATTERN " done -export GREP_OPTIONS+='--color=auto ' -export GREP_COLOR='1;32' \ No newline at end of file +GREP_OPTIONS+="--color=auto" +export GREP_OPTIONS="$GREP_OPTIONS" +export GREP_COLOR='1;32' From f9ad3686bbedea0ca2adf3bc4ab19c3e90e8800a Mon Sep 17 00:00:00 2001 From: ncanceill Date: Sun, 23 Mar 2014 14:39:38 +0100 Subject: [PATCH 33/36] suggest setting $LANG to fix #1286 and fix #1823 --- templates/zshrc.zsh-template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index c25c20e75..5e1d9b2f1 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -54,6 +54,9 @@ source $ZSH/oh-my-zsh.sh export PATH=$HOME/bin:/usr/local/bin:$PATH # export MANPATH="/usr/local/man:$MANPATH" +# You may need to manually set your language environment +# export LANG=en_US.UTF-8 + # # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' From 04c2d293985adced1bd702fca16357b858002bb8 Mon Sep 17 00:00:00 2001 From: ncanceill Date: Sun, 23 Mar 2014 14:45:55 +0100 Subject: [PATCH 34/36] mention $ZSH_CUSTOM as suggested in #2295 --- templates/zshrc.zsh-template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 5e1d9b2f1..48757ba0e 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -42,6 +42,9 @@ ZSH_THEME="robbyrussell" # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # HIST_STAMPS="mm/dd/yyyy" +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) From 6889dfaa46858ddacc82549a57d73118c66a32b6 Mon Sep 17 00:00:00 2001 From: ncanceill Date: Sun, 23 Mar 2014 14:47:10 +0100 Subject: [PATCH 35/36] $ZSH is the OMZ installation folder, not configuration --- templates/zshrc.zsh-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 48757ba0e..7b7f1df85 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -1,4 +1,4 @@ -# Path to your oh-my-zsh configuration. +# Path to your oh-my-zsh installation. export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. From 37e619ed9b7c3b1bda9788861a9a4c5ca4647ed0 Mon Sep 17 00:00:00 2001 From: Phil Eichinger Date: Tue, 25 Mar 2014 13:43:36 +0100 Subject: [PATCH 36/36] New aliases for 'apt-get' and 'aptitude' as they were overwritten by later aliases --- plugins/debian/debian.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index 28dfb82a5..6e45e0521 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -21,8 +21,8 @@ fi # Aliases ################################################################### # These are for more obscure uses of apt-get and aptitude that aren't covered # below. -alias ag='apt-get' -alias ap='aptitude' +alias age='apt-get' +alias api='aptitude' # Some self-explanatory aliases alias acs="apt-cache search"