[Bash-completion-commits] [bash-completion] 06/11: Puppet: cert: update options list, accordind to 'puppet help cert'

Ville Skyttä scop-guest at moszumanska.debian.org
Mon Jun 2 09:42:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit b46636ae16c98045caf9c4dbfa4020f3c08671a5
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Fri May 30 15:55:36 2014 +0200

    Puppet: cert: update options list, accordind to 'puppet help cert'
---
 completions/puppet | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/completions/puppet b/completions/puppet
index e757815..fd4ff09 100644
--- a/completions/puppet
+++ b/completions/puppet
@@ -170,31 +170,30 @@ _puppet()
                     ;;
                 *)
                     action=$prev
-                    COMPREPLY=( $( compgen -W '--digest --debug --verbose' \
+                    COMPREPLY=( $( compgen -W '--digest --debug --help --verbose --version' \
                         -- "$cur" ) )
                     case $action in
-                        --generate)
+                        fingerprint|list|verify|--fingerprint|--list|--verify)
+                            COMPREPLY+=( $( compgen -W '--all' -- "$cur" ) )
+                            _puppet_certs --all
+                            return 0
+                            ;;
+                        generate|--generate)
                             _known_hosts_real "$cur"
                             return 0
                             ;;
-                        --clean|--fingerprint|--revoke|--verify)
-                            COMPREPLY+=( $( compgen -W '--all' -- "$cur" ) )
+                        clean|print|revoke|--clean|--print|--revoke)
                             _puppet_certs --all
                             return 0
                             ;;
-                        --sign)
+                        sign|--sign)
                             COMPREPLY+=( $( compgen -W '--all' -- "$cur" ) )
                             _puppet_certs
                             return 0
                             ;;
-                        --list|--print)
-                            COMPREPLY+=( $( compgen -W '--all' -- "$cur" ) )
-                            return 0
-                            ;;
                         *)
-                            COMPREPLY=( $( compgen -W '--clean --generate
-                                --help --list --print --fingerprint --revoke
-                                --sign --version --verify' -- "$cur" ) )
+                            COMPREPLY+=( $( compgen -W 'clean fingerprint generate
+                                list print revoke sign verify reinventory' -- "$cur" ) )
                             return 0
                     esac
             esac

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list