diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2024-10-21 11:43:14 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2024-10-22 16:11:31 +0200 |
commit | 918b82231fd0561c028876f3b1631b193cfcd83c (patch) | |
tree | 946a3e31f16c464d623169fe8c1a9abda3b1f4dd | |
parent | d8bacc4b946a3fb523e9c2b683842bce99e000e6 (diff) | |
download | justbuild-918b82231fd0561c028876f3b1631b193cfcd83c.tar.gz |
just_complete.bash: add missing subcommands
-rw-r--r-- | share/just_complete.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/just_complete.bash b/share/just_complete.bash index 7a7c00c0..8fc8176d 100644 --- a/share/just_complete.bash +++ b/share/just_complete.bash @@ -78,7 +78,7 @@ EOF } _just_completion(){ - local readonly SUBCOMMANDS=(build analyse describe install-cas install rebuild gc execute -h --help version) + local readonly SUBCOMMANDS=(build analyse describe install-cas install rebuild gc execute -h --help version add-to-cas serve) local word=${COMP_WORDS[$COMP_CWORD]} local prev=${COMP_WORDS[$((COMP_CWORD-1))]} local cmd=${COMP_WORDS[1]} @@ -111,7 +111,7 @@ _just_completion(){ done # if $conf is empty and this function is invoked by just-mr # we use the auto-generated conf file - if [ -z "$conf" ]; then conf="${justmrconf}"; + if [ -z "$conf" ]; then conf="${justmrconf}"; fi local _targets=($(_just_targets "$conf" "$main" "$prev" 2>/dev/null)) COMPREPLY=($(compgen -f -W "${_opts[*]} ${_targets[*]}" -- $word )) @@ -162,7 +162,7 @@ EOF } _just-mr_completion(){ - local readonly SUBCOMMANDS=(setup setup-env fetch update "do" version build analyse describe install-cas install rebuild gc execute) + local readonly SUBCOMMANDS=(mrversion setup setup-env fetch update "do" gc-repo add-to-cas analyse build describe gc install install-cas rebuild version -h --help) local word=${COMP_WORDS[$COMP_CWORD]} local prev=${COMP_WORDS[$((COMP_CWORD-1))]} local cmd=$(_just-mr_parse_subcommand "${COMP_WORDS[@]}") |