@@ -10,6 +10,7 @@ import (
1010 "time"
1111
1212 "github.com/AlecAivazis/survey/v2"
13+ "github.com/MakeNowJust/heredoc"
1314 "github.com/cli/cli/api"
1415 "github.com/cli/cli/git"
1516 "github.com/cli/cli/internal/ghrepo"
@@ -47,11 +48,11 @@ var repoCmd = &cobra.Command{
4748 Use : "repo <command>" ,
4849 Short : "Create, clone, fork, and view repositories" ,
4950 Long : `Work with GitHub repositories` ,
50- Example : `
51+ Example : heredoc . Doc ( `
5152 $ gh repo create
5253 $ gh repo clone cli/cli
5354 $ gh repo view --web
54- ` ,
55+ ` ) ,
5556 Annotations : map [string ]string {
5657 "IsCore" : "true" ,
5758 "help:arguments" : `
@@ -77,7 +78,7 @@ var repoCreateCmd = &cobra.Command{
7778 Use : "create [<name>]" ,
7879 Short : "Create a new repository" ,
7980 Long : `Create a new GitHub repository.` ,
80- Example : `
81+ Example : heredoc . Doc ( `
8182 # create a repository under your account using the current directory name
8283 $ gh repo create
8384
@@ -86,7 +87,7 @@ var repoCreateCmd = &cobra.Command{
8687
8788 # create a repository in an organization
8889 $ gh repo create cli/my-project
89- ` ,
90+ ` ) ,
9091 Annotations : map [string ]string {"help:arguments" : `A repository can be supplied as an argument in any of the following formats:
9192- <OWNER/REPO>
9293- by URL, e.g. "https://github.com/OWNER/REPO"` },
@@ -116,7 +117,7 @@ With '--web', open the repository in a web browser instead.`,
116117var repoCreditsCmd = & cobra.Command {
117118 Use : "credits [<repository>]" ,
118119 Short : "View credits for a repository" ,
119- Example : `
120+ Example : heredoc . Doc ( `
120121 # view credits for the current repository
121122 $ gh repo credits
122123
@@ -128,7 +129,7 @@ var repoCreditsCmd = &cobra.Command{
128129
129130 # pipe to just print the contributors, one per line
130131 $ gh repo credits | cat
131- ` ,
132+ ` ) ,
132133 Args : cobra .MaximumNArgs (1 ),
133134 RunE : repoCredits ,
134135 Hidden : true ,
0 commit comments