-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ladios-bash-completion'
- Loading branch information
Showing
4 changed files
with
361 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
@completion | ||
Feature: bash tab-completion | ||
|
||
Scenario: "pu" matches multiple commands including "pull-request" | ||
Background: | ||
Given my shell is bash | ||
And I'm using git-distributed base git completions | ||
|
||
Scenario: "pu" matches multiple commands including "pull-request" | ||
When I type "git pu" and press <Tab> | ||
Then the command should not expand | ||
When I press <Tab> again | ||
Then the completion menu should offer "pull pull-request push" | ||
|
||
Scenario: "ci-" expands to "ci-status" | ||
Given my shell is bash | ||
And I'm using git-distributed base git completions | ||
When I type "git ci-" and press <Tab> | ||
Then the command should expand to "git ci-status" | ||
|
||
# In this combination, zsh uses completion support from a bash script. | ||
Scenario: "ci-" expands to "ci-status" | ||
Given my shell is zsh | ||
And I'm using git-distributed base git completions | ||
When I type "git ci-" and press <Tab> | ||
Then the command should expand to "git ci-status" | ||
Scenario: Offers pull-request flags | ||
When I type "git pull-request -" and press <Tab> | ||
When I press <Tab> again | ||
Then the completion menu should offer "-F -b -f -h -i -m" | ||
|
||
Scenario: Browse to issues | ||
When I type "git browse -- i" and press <Tab> | ||
Then the command should expand to "git browse -- issues" | ||
|
||
Scenario: Browse to punch-card graph | ||
When I type "git browse -- graphs/p" and press <Tab> | ||
Then the command should expand to "git browse -- graphs/punch-card" | ||
|
||
Scenario: Completion of fork argument | ||
When I type "git fork -" and press <Tab> | ||
Then the command should expand to "git fork --no-remote" | ||
|
||
Scenario: Completion of user/repo in "browse" | ||
Scenario: Completion of branch names in "compare" | ||
Scenario: Completion of "owner/repo:branch" in "pull-request -h/b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.