From f84650c28c760a3cec0612dd6ac5b9b34b6aa76e Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Wed, 29 Nov 2017 02:09:42 -0800 Subject: Enable auto-completion for the "ibazel" command ibazel implements a the same command line interface as bazel, so we can just use the same completion function. See https://github.com/bazelbuild/bazel-watcher. Closes #4091. PiperOrigin-RevId: 177282217 --- scripts/bazel-complete-template.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/bazel-complete-template.bash b/scripts/bazel-complete-template.bash index cccc1acca1..d3f89bb6f8 100644 --- a/scripts/bazel-complete-template.bash +++ b/scripts/bazel-complete-template.bash @@ -56,8 +56,9 @@ # Some commands might interfer with the important one, so don't complete them : ${BAZEL_IGNORED_COMMAND_REGEX:="__none__"} -# Bazel command +# bazel & ibazel commands : ${BAZEL:=bazel} +: ${IBAZEL:=ibazel} # Pattern to match for looking for a target # BAZEL_BUILD_MATCH_PATTERN__* give the pattern for label-* @@ -466,3 +467,4 @@ _bazel__complete_target_stdout() { # default completion for bazel complete -F _bazel__complete -o nospace "${BAZEL}" +complete -F _bazel__complete -o nospace "${IBAZEL}" -- cgit v1.2.3