Set core root commands

This commit is contained in:
Corey Johnson 2020-06-09 08:49:22 -07:00
parent 51353c79d6
commit 0af61bee90
3 changed files with 6 additions and 4 deletions

View file

@ -56,6 +56,7 @@ var issueCmd = &cobra.Command{
An issue can be supplied as argument in any of the following formats:
- by number, e.g. "123"; or
- by URL, e.g. "https://github.com/OWNER/REPO/issues/123".`,
Annotations: map[string]string{"IsCore": "true"},
}
var issueCreateCmd = &cobra.Command{
Use: "create",

View file

@ -54,12 +54,12 @@ A pull request can be supplied as argument in any of the following formats:
- by number, e.g. "123";
- by URL, e.g. "https://github.com/OWNER/REPO/pull/123"; or
- by the name of its head branch, e.g. "patch-1" or "OWNER:patch-1".`,
Annotations: map[string]string{"IsCore": "true"},
}
var prListCmd = &cobra.Command{
Use: "list",
Short: "List and filter pull requests in this repository",
RunE: prList,
Annotations: map[string]string{"IsCore": "true"},
Use: "list",
Short: "List and filter pull requests in this repository",
RunE: prList,
}
var prStatusCmd = &cobra.Command{
Use: "status",

View file

@ -48,6 +48,7 @@ var repoCmd = &cobra.Command{
A repository can be supplied as an argument in any of the following formats:
- "OWNER/REPO"
- by URL, e.g. "https://github.com/OWNER/REPO"`,
Annotations: map[string]string{"IsCore": "true"},
}
var repoCloneCmd = &cobra.Command{