sip/cmd/pulls.go
John Olheiser 894a641ef8
All checks were successful
continuous-integration/drone/push Build is passing
Refactor (#29)
Clean up docs

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Add generated docs

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Update go.sum

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Fix remote parsing

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Refactor and clean up

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: #29
2020-09-17 16:25:09 +00:00

31 lines
544 B
Go

package cmd
import (
"github.com/urfave/cli/v2"
)
var Pulls = cli.Command{
Name: "pulls",
Aliases: []string{"pull", "pr"},
Usage: "Commands for interacting with pull requests",
Action: doPullsSearch,
Subcommands: []*cli.Command{
&PullsCreate,
&PullsStatus,
&PullsCheckout,
},
Flags: []cli.Flag{
&cli.StringFlag{
Name: "csv",
Usage: "Output results to a CSV file at `PATH`",
},
},
}
func doPullsSearch(ctx *cli.Context) error {
if _, err := issuesSearch(ctx, true); err != nil {
return err
}
return nil
}