Bash auto-complete file generation
Usage
Generating the completion functions file
Using xsltproc
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)
Supported features
-
Option names
-
Sub command names
-
Argument value restrictions
-
Restricted values
-
file system type (file, folder, link)
-
file patterns
-
number type
-
existing commands
-
hostnames
The program interface definition framework