-
Notifications
You must be signed in to change notification settings - Fork 1
BashAutocomplete
Renaud Guillard edited this page Jul 3, 2013
·
9 revisions
- [Bash auto-complete file generation](#Bash auto-complete file generation)
-
Usage
- [Generating the completion functions file](#Generating the completion functions file)
- [Supported features](#Supported features)
-
Usage
Using xsltproc
#!bash
xsltproc -o program-autocomplete.sh ${NSXML_PATH}/ns/xsl/program/${SCHEMA_VERSION}/c-gengetopt.xsl program.xml
Where program.xml
is the program interface XML definition file.
- Parameters
- `prg.bash.completion.programFileExtension`: Specify the program extension (with the dot). If the program was generated with the name `my_program.sh`, the `prg.bash.completion.programFileExtension` parameter have to be set to `.sh`. The default value is "" (no extension)
- Option names
- Sub command names
- Argument value restrictions
- Restricted values
- file system type (file, folder, link)
- file patterns
- number type
- existing commands
- hostnames