diff options
author | Martin Probst <martin@probst.io> | 2017-11-29 02:09:42 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-11-29 02:26:38 -0800 |
commit | f84650c28c760a3cec0612dd6ac5b9b34b6aa76e (patch) | |
tree | 50aec2125e8322eb68cbb8d3e3f71f8e774963aa /scripts | |
parent | 4852a9e66edcdaf223f5522d79543ea23f91a540 (diff) |
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
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/bazel-complete-template.bash | 4 |
1 files changed, 3 insertions, 1 deletions
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}" |