Skip to content

Commit

Permalink
Add aliases to status and update commands
Browse files Browse the repository at this point in the history
Fixes: #89

commit-id:91c9d647
  • Loading branch information
ejoffe committed Jul 17, 2021
1 parent 78b8531 commit 11dec28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions cmd/spr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,11 @@ VERSION: {{.Version}}
}
return nil
},
Action: func(c *cli.Context) error {
stackedpr.StatusPullRequests(ctx)
return nil
},
Commands: []*cli.Command{
{
Name: "status",
Usage: "Show status of open pull requests",
Name: "status",
Aliases: []string{"s", "st"},
Usage: "Show status of open pull requests",
Action: func(c *cli.Context) error {
stackedpr.StatusPullRequests(ctx)
return nil
Expand All @@ -135,8 +132,9 @@ VERSION: {{.Version}}
},
},
{
Name: "update",
Usage: "Update and create pull requests for updated commits in the stack",
Name: "update",
Aliases: []string{"u", "up"},
Usage: "Update and create pull requests for updated commits in the stack",
Action: func(c *cli.Context) error {
stackedpr.UpdatePullRequests(ctx)
return nil
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ MERGED #59 Feature 2
Show Current Pull Requests
--------------------------
```shell
> git spr
> git spr status
[·✗✔✗] 60: Feature 3
```

Expand Down

0 comments on commit 11dec28

Please sign in to comment.