Skip to content

Latest commit

 

History

History
executable file
·
27 lines (21 loc) · 675 Bytes

autocomplete.md

File metadata and controls

executable file
·
27 lines (21 loc) · 675 Bytes
layout title permalink nav_order
page
Autocomplete Arguments
/autocomplete/
5

Autocomplete Arguments

{: .no_toc }

You may add something like this to add auto completion feature. {: .fs-6 .fw-300 }

Definition

_bb_autocomplete() {
    local pipeline_commands="get latest wait run"
    local pr_commands="list diff commits approve no-approve request-changes no-request-changes decline merge create"
    local branch_commands="list user name"
    local auth_commands="save show"

    _arguments "1: :(pr pipeline branch auth browse upgrade)" "2: :(help $pipeline_commands $pr_commands $branch_commands $auth_commands)"
}

compdef _bb_autocomplete bb