svn: /phpdoc/doc-base/trunk/scripts/ helpers/phpdoc-completion.sh
| From: | Philip Olson | Date: | Thu, 28 Apr 2011 21:05:17 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/scripts/ helpers/phpdoc-completion.sh | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8038@lists.php.net to get a copy of this message | ||
philip Thu, 28 Apr 2011 21:05:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310643
Log:
Bash completion for configure.php. It's a start. Based on phd-completion.sh by Moacir.
Changed paths:
A phpdoc/doc-base/trunk/scripts/helpers/
A phpdoc/doc-base/trunk/scripts/helpers/phpdoc-completion.sh
Added: phpdoc/doc-base/trunk/scripts/helpers/phpdoc-completion.sh
===================================================================
--- phpdoc/doc-base/trunk/scripts/helpers/phpdoc-completion.sh (rev 0)
+++ phpdoc/doc-base/trunk/scripts/helpers/phpdoc-completion.sh 2011-04-28 21:05:17 UTC (rev 310643)
@@ -0,0 +1,36 @@
+# ex: ts=4 sw=4 et filetype=sh
+
+_phpdoc()
+{
+ local cur opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ opts="
+ --help
+ --version
+ --quiet
+ --srcdir=
+ --basedir=
+ --rootdir=
+ --enable-force-dom-save
+ --enable-chm
+ --enable-howto
+ --with-lang=
+ --disable-segfault-error
+ --disable-segfault-speed
+ --disable-version-files
+ --disable-libxml-check
+ --with-php=
+ --with-partial=
+ --generate=
+ --output=
+ --disable-broken-file-listing
+ --redirect-stderr-to-stdout"
+
+ if [[ ${cur} == -* ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+}
+
+complete -F _phpdoc phpdoc
\ No newline at end of file
Property changes on: phpdoc/doc-base/trunk/scripts/helpers/phpdoc-completion.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native