[Bash-completion-commits] [bash-completion] 03/11: Puppet: puppet parser support

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 b56df708a1bbaf27bf76d06b18448bba6b2d59f6
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Fri May 30 14:56:49 2014 +0200

    Puppet: puppet parser support
---
 completions/puppet | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/completions/puppet b/completions/puppet
index 6c9a055..25abb5d 100644
--- a/completions/puppet
+++ b/completions/puppet
@@ -88,7 +88,7 @@ _puppet()
             ;;
         puppet)
             case ${words[1]} in
-               agent|apply|cert|describe|doc|filebucket|kick|master|queue|resource)
+               agent|apply|cert|describe|doc|filebucket|kick|master|parser|queue|resource)
                    subcommand=${words[1]}
                    ;;
                *.pp|*.rb)
@@ -96,7 +96,7 @@ _puppet()
                    ;;
                *)
                   COMPREPLY=( $( compgen -W 'agent apply cert describe doc
-                      filebucket kick master queue resource' -- "$cur" ) )
+                      filebucket kick master parser queue resource' -- "$cur" ) )
                   return 0
                   ;;
             esac
@@ -281,6 +281,18 @@ _puppet()
                     return 0
             esac
             ;;
+        parser)
+            action=$prev
+            case $action in
+                validate)
+                    _filedir pp
+                    return 0
+                    ;;
+                *)
+                    COMPREPLY=( $( compgen -W 'validate' -- "$cur" ) )
+                    return 0
+            esac
+            ;;
         queue)
             case $prev in
                 --logdest)

-- 
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