Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed #265 and add bash autocomplete #267

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
Contributor

Natim commented Sep 13, 2012

Add bash_auto_complete on circusctl commands.

@almet almet commented on the diff Sep 13, 2012

circus/circusctl.py
+ def autocomplete(self):
+ """
+ Output completion suggestions for BASH.
+
+ The output of this function is passed to BASH's `COMREPLY` variable and
+ treated as completion suggestions. `COMREPLY` expects a space
+ separated string as the result.
+
+ The `COMP_WORDS` and `COMP_CWORD` BASH environment variables are used
+ to get information about the cli input. Please refer to the BASH
+ man-page for more information about this variables.
+
+ Subcommand options are saved as pairs. A pair consists of
+ the long option string (e.g. '--exclude') and a boolean
+ value indicating if the option requires arguments. When printing to
+ stdout, a equal sign is appended to options which require arguments.
@almet

almet Sep 13, 2012

Contributor

"an equal sign"

Contributor

almet commented Sep 13, 2012

Diantre ! Sacreubleu ! "Fix a typo" ? FIX A F*** TYPO ?

@almet almet closed this Sep 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment