From f84365ce08db22848a4c8f4ad7cd413f094bf314 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 27 Jul 2020 10:02:18 -0500 Subject: [PATCH] use heredocs --- pkg/cmd/repo/create/create.go | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkg/cmd/repo/create/create.go b/pkg/cmd/repo/create/create.go index 6d86c6388..313f9a91e 100644 --- a/pkg/cmd/repo/create/create.go +++ b/pkg/cmd/repo/create/create.go @@ -45,18 +45,21 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co Long: `Create a new GitHub repository.`, Args: cobra.MaximumNArgs(1), Example: heredoc.Doc(` - # create a repository under your account using the current directory name - $ gh repo create + # create a repository under your account using the current directory name + $ gh repo create - # create a repository with a specific name - $ gh repo create my-project + # create a repository with a specific name + $ gh repo create my-project - # create a repository in an organization - $ gh repo create cli/my-project - `), - Annotations: map[string]string{"help:arguments": `A repository can be supplied as an argument in any of the following formats: -- -- by URL, e.g. "https://github.com/OWNER/REPO"`}, + # create a repository in an organization + $ gh repo create cli/my-project + `), + Annotations: map[string]string{ + "help:arguments": heredoc.Doc( + `A repository can be supplied as an argument in any of the following formats: + - + - by URL, e.g. "https://github.com/OWNER/REPO"`), + }, RunE: func(cmd *cobra.Command, args []string) error { if len(args) > 0 { opts.Name = args[0]