2020-02-14 21:46:02 +01:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2020-02-14 22:18:13 +01:00
|
|
|
"github.com/urfave/cli/v2"
|
2020-02-14 21:46:02 +01:00
|
|
|
)
|
|
|
|
|
2020-02-14 22:18:13 +01:00
|
|
|
var Pulls = cli.Command{
|
|
|
|
Name: "pulls",
|
2020-02-17 06:28:11 +01:00
|
|
|
Aliases: []string{"pull", "pr"},
|
2020-02-14 22:18:13 +01:00
|
|
|
Usage: "Commands for interacting with pull requests",
|
2020-02-16 06:51:14 +01:00
|
|
|
Action: doPullsSearch,
|
2020-02-16 23:31:01 +01:00
|
|
|
Subcommands: []*cli.Command{
|
2020-02-17 06:28:11 +01:00
|
|
|
&PullsCreate,
|
|
|
|
&PullsStatus,
|
|
|
|
&PullsCheckout,
|
2020-02-16 23:31:01 +01:00
|
|
|
},
|
2020-02-14 22:18:13 +01:00
|
|
|
}
|
|
|
|
|
2020-02-16 06:51:14 +01:00
|
|
|
func doPullsSearch(ctx *cli.Context) error {
|
2020-02-17 06:28:11 +01:00
|
|
|
if _, err := issuesSearch(ctx, true); err != nil {
|
2020-02-16 23:31:01 +01:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|