Shell completion export from the wrapper binary
commit04cc4266c2f34110500036d9eb11908a99fb8941
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 4 Sep 2013 03:39:16 +0000 (4 06:39 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 28 Jan 2014 13:05:41 +0000 (28 14:05 +0100)
treec0d376d83863525023195d68a6260b89d73578f5
parenta34a52e34e6b3f1b5a8f7817a75eaa1461d92156
Shell completion export from the wrapper binary

Bash completions now complete the arguments to the wrapper binary
itself, as well as the subcommand names.  After a subcommand has been
specified, use the existing completion logic.  Completions now work also
for arbitrarily suffixed binaries (which the old system didn't work at
all).  No completion is generated for symlinks, but should be
straightforward to do if really required; approach would be the same as
for GMX_BUILD_MDRUN_ONLY.

Other completions are not working for the wrapper binary, and as far as
I can tell, require a completely different approach. Removed the
non-functional code.

Related to #685 and #1410.

Change-Id: I55b13a65c176dab6e2f4f41bf6e829112c99e6b3
20 files changed:
CMakeLists.txt
admin/mkcompl [deleted file]
scripts/CMakeLists.txt
scripts/GMXRC.bash.cmakein
scripts/GMXRC.csh.cmakein
scripts/completion.bash [deleted file]
scripts/completion.csh [deleted file]
scripts/completion.zsh [deleted file]
share/CMakeLists.txt
src/gromacs/commandline/cmdlinehelpcontext.cpp
src/gromacs/commandline/cmdlinehelpcontext.h
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/pargs.cpp
src/gromacs/commandline/shellcompletions.cpp
src/gromacs/commandline/shellcompletions.h
src/gromacs/onlinehelp/helpwritercontext.h
src/programs/.gitignore [new file with mode: 0644]
src/programs/CMakeLists.txt
src/programs/gmx/.gitignore [deleted file]