This document will describe how to achieve tab-completion functionality for SeqWare.
Download the script from https://github.com/SeqWare/seqware/releases/download/1.1.0/seqware_bash_completion
From the command line, you can do it like this:
$ wget https://github.com/SeqWare/seqware/releases/download/1.1.0/seqware_bash_completion
The script contains bash code that will tell your system how to perform tab-completion for the
seqware command. You will need to execute this script to register this code with your system. To do this, you must ensure that the file is executable.
$ chmod u+x seqware_bash_completion
The script needs to be installed in
/etc/bash_completion.d/. If you don’t have access to this directory, you could try installing it to
$ sudo mv seqware_bash_completion /etc/bash_completion.d/
The script then needs to be executed.
You should now be able to type
seqware-<TAB> and see a list of available sub-commands (the changes might not be noticable until you open a new terminal or start a new session):
$ seqware annotate checkdb create files workflow bundle copy dev query workflow-run
This will work on subcommands as well!
$ seqware annotate experiment ius processing study workflow-run file lane sample workflow