Skip to content

Commit f84365c

Browse files
committed
use heredocs
1 parent dadcf4b commit f84365c

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

pkg/cmd/repo/create/create.go

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,21 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
4545
Long: `Create a new GitHub repository.`,
4646
Args: cobra.MaximumNArgs(1),
4747
Example: heredoc.Doc(`
48-
# create a repository under your account using the current directory name
49-
$ gh repo create
50-
51-
# create a repository with a specific name
52-
$ gh repo create my-project
53-
54-
# create a repository in an organization
55-
$ gh repo create cli/my-project
56-
`),
57-
Annotations: map[string]string{"help:arguments": `A repository can be supplied as an argument in any of the following formats:
58-
- <OWNER/REPO>
59-
- by URL, e.g. "https://github.com/OWNER/REPO"`},
48+
# create a repository under your account using the current directory name
49+
$ gh repo create
50+
51+
# create a repository with a specific name
52+
$ gh repo create my-project
53+
54+
# create a repository in an organization
55+
$ gh repo create cli/my-project
56+
`),
57+
Annotations: map[string]string{
58+
"help:arguments": heredoc.Doc(
59+
`A repository can be supplied as an argument in any of the following formats:
60+
- <OWNER/REPO>
61+
- by URL, e.g. "https://github.com/OWNER/REPO"`),
62+
},
6063
RunE: func(cmd *cobra.Command, args []string) error {
6164
if len(args) > 0 {
6265
opts.Name = args[0]

0 commit comments

Comments
 (0)