From 8979c0ce41fba728cc835cfe0db50dd8b72fcd6f Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 9 Jun 2020 09:51:18 -0700 Subject: [PATCH] Update repo --- command/issue.go | 2 +- command/pr.go | 2 +- command/repo.go | 15 ++++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/command/issue.go b/command/issue.go index c9a677191..95df9f086 100644 --- a/command/issue.go +++ b/command/issue.go @@ -51,7 +51,7 @@ func init() { var issueCmd = &cobra.Command{ Use: "issue [flags]", Short: "Create and view issues", - Long: `Work with GitHub issues.`, + Long: `Work with GitHub issues`, Example: `$ gh issue list $ gh issue create --fill $ gh issue view --web`, diff --git a/command/pr.go b/command/pr.go index 15b0cfb06..622ef7f1c 100644 --- a/command/pr.go +++ b/command/pr.go @@ -48,7 +48,7 @@ func init() { var prCmd = &cobra.Command{ Use: "pr [flags]", Short: "Create, view, and checkout pull requests", - Long: `Work with GitHub pull requests.`, + Long: `Work with GitHub pull requests`, Example: `$ gh pr checkout 353 $ gh pr checkout bug-fix-branch $ gh pr create --fill diff --git a/command/repo.go b/command/repo.go index 16308deec..9601a3df3 100644 --- a/command/repo.go +++ b/command/repo.go @@ -41,14 +41,19 @@ func init() { } var repoCmd = &cobra.Command{ - Use: "repo", + Use: "repo [flags]", Short: "Create, clone, fork, and view repositories", - Long: `Work with GitHub repositories. - + Long: `Work with GitHub repositories`, + Example: `$ gh repo create +$ gh repo clone cli/cli +$ gh repo view --web +`, + Annotations: map[string]string{ + "IsCore": "true", + "help:arguments": ` 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"}, +- by URL, e.g. "https://github.com/OWNER/REPO"`}, } var repoCloneCmd = &cobra.Command{