diff options
author | fred-o <fredrik.appelberg@gmail.com> | 2012-08-03 10:15:01 +0200 |
---|---|---|
committer | Phil Eichinger <phil@zankapfel.net> | 2014-03-25 16:47:58 +0100 |
commit | 8194aa9554a0edf7998b1c5dabeb8e37f5807191 (patch) | |
tree | 3c58f9d5888f5a7c5832fd0c4afded691bad594e | |
parent | bc02c28b736f4f9e6af97829da21128f42a4b8ba (diff) | |
download | zsh-8194aa9554a0edf7998b1c5dabeb8e37f5807191.tar.gz zsh-8194aa9554a0edf7998b1c5dabeb8e37f5807191.tar.bz2 zsh-8194aa9554a0edf7998b1c5dabeb8e37f5807191.zip |
application completion
-rw-r--r-- | plugins/glassfish/_asadmin | 8 |
1 files 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() { |