Skip to content
Myr

Complete command names even if ValidArgs present (#1088)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Marc Khouzam · committed by GitHub · parent e392f32 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:bash_completions.go+1 added-2 removed
179 unmodified lines
180181 local completions182 completions=("${commands[@]}")183 if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then184 completions=("${must_have_one_noun[@]}")184 completions+=("${must_have_one_noun[@]}")185 elif [[ -n "${has_completion_function}" ]]; then186 # if a go completion function is provided, defer to that function187 completions=()187 __%[1]s_handle_go_custom_completion188 fi189 if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then190 completions+=("${must_have_one_flag[@]}")
450 unmodified lines