github.com/scorpionis/hub@v2.2.1+incompatible/features/bash_completion.feature (about)

     1  @completion
     2  Feature: bash tab-completion
     3  
     4    Background:
     5      Given my shell is bash
     6      And I'm using git-distributed base git completions
     7  
     8    Scenario: "pu" matches multiple commands including "pull-request"
     9      When I type "git pu" and press <Tab>
    10      Then the command should not expand
    11      When I press <Tab> again
    12      Then the completion menu should offer "pull pull-request push"
    13  
    14    Scenario: "ci-" expands to "ci-status"
    15      When I type "git ci-" and press <Tab>
    16      Then the command should expand to "git ci-status"
    17  
    18    Scenario: Offers pull-request flags
    19      When I type "git pull-request -" and press <Tab>
    20      When I press <Tab> again
    21      Then the completion menu should offer "-F -b -f -h -i -m" unsorted
    22  
    23    Scenario: Doesn't offer already used pull-request flags
    24      When I type "git pull-request -F myfile -h mybranch -" and press <Tab>
    25      When I press <Tab> again
    26      Then the completion menu should offer "-b -f -i -m" unsorted
    27  
    28    Scenario: Browse to issues
    29      When I type "git browse -- i" and press <Tab>
    30      Then the command should expand to "git browse -- issues"
    31  
    32    Scenario: Browse to punch-card graph
    33      When I type "git browse -- graphs/p" and press <Tab>
    34      Then the command should expand to "git browse -- graphs/punch-card"
    35  
    36    Scenario: Completion of fork argument
    37      When I type "git fork -" and press <Tab>
    38      Then the command should expand to "git fork --no-remote"
    39  
    40    Scenario: Completion of user/repo in "browse"
    41    Scenario: Completion of branch names in "compare"
    42    Scenario: Completion of "owner/repo:branch" in "pull-request -h/b"