Commit 988dc5ca authored by Iustin Pop's avatar Iustin Pop
Browse files

Enable bash completion for mon-collector



This just ties in all the pieces so far and enables bash completion
for it.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 24476fa0
......@@ -1331,6 +1331,7 @@ lib/_autoconf.py: Makefile | stamp-directories
echo "XEN_CMD = '$(XEN_CMD)'"; \
echo "ENABLE_SPLIT_QUERY = $(ENABLE_SPLIT_QUERY)"; \
echo "ENABLE_RESTRICTED_COMMANDS = $(ENABLE_RESTRICTED_COMMANDS)"; \
echo "ENABLE_MONITORING = $(ENABLE_MONITORING)"; \
} > $@
lib/_vcsversion.py: Makefile vcs-version | stamp-directories
......
......@@ -853,6 +853,10 @@ def main():
WriteHaskellCompletion(sw, "htools/ganeti-confd", htools=False,
debug=debug)
# mon-collector, if monitoring is enabled
if _autoconf.ENABLE_MONITORING:
WriteHaskellCmdCompletion(sw, "htools/mon-collector", debug=debug)
# Reset extglob to original value
sw.Write("[[ -n \"$gnt_shopt_extglob\" ]] && $gnt_shopt_extglob")
sw.Write("unset gnt_shopt_extglob")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment