Skip to content

Commit 1102de8

Browse files
committed
add quotes around @me in documentation to ensure examples work on powershell
1 parent 99cbfd3 commit 1102de8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

pkg/cmd/issue/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
6262
$ gh issue create --label "bug,help wanted"
6363
$ gh issue create --label bug --label "help wanted"
6464
$ gh issue create --assignee monalisa,hubot
65-
$ gh issue create --assignee @me
65+
$ gh issue create --assignee "@me"
6666
$ gh issue create --project "Roadmap"
6767
`),
6868
Args: cmdutil.NoArgsQuoteReminder,

pkg/cmd/issue/edit/edit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func NewCmdEdit(f *cmdutil.Factory, runF func(*EditOptions) error) *cobra.Comman
5050
Example: heredoc.Doc(`
5151
$ gh issue edit 23 --title "I found a bug" --body "Nothing works"
5252
$ gh issue edit 23 --add-label "bug,help wanted" --remove-label "core"
53-
$ gh issue edit 23 --add-assignee @me --remove-assignee monalisa,hubot
53+
$ gh issue edit 23 --add-assignee "@me" --remove-assignee monalisa,hubot
5454
$ gh issue edit 23 --add-project "Roadmap" --remove-project v1,v2
5555
$ gh issue edit 23 --milestone "Version 1"
5656
$ gh issue edit 23 --body-file body.txt

pkg/cmd/issue/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
5757
Example: heredoc.Doc(`
5858
$ gh issue list -l "bug" -l "help wanted"
5959
$ gh issue list -A monalisa
60-
$ gh issue list -a @me
60+
$ gh issue list -a "@me"
6161
$ gh issue list --web
6262
$ gh issue list --milestone "The big 1.0"
6363
$ gh issue list --search "error no:assignee sort:created-asc"

pkg/cmd/pr/edit/edit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewCmdEdit(f *cmdutil.Factory, runF func(*EditOptions) error) *cobra.Comman
5555
$ gh pr edit 23 --title "I found a bug" --body "Nothing works"
5656
$ gh pr edit 23 --add-label "bug,help wanted" --remove-label "core"
5757
$ gh pr edit 23 --add-reviewer monalisa,hubot --remove-reviewer myorg/team-name
58-
$ gh pr edit 23 --add-assignee @me --remove-assignee monalisa,hubot
58+
$ gh pr edit 23 --add-assignee "@me" --remove-assignee monalisa,hubot
5959
$ gh pr edit 23 --add-project "Roadmap" --remove-project v1,v2
6060
$ gh pr edit 23 --milestone "Version 1"
6161
`),

pkg/cmd/pr/list/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
5151
Short: "List and filter pull requests in this repository",
5252
Example: heredoc.Doc(`
5353
List PRs authored by you
54-
$ gh pr list --author @me
54+
$ gh pr list --author "@me"
5555
5656
List PRs assigned to you
57-
$ gh pr list --assignee @me
57+
$ gh pr list --assignee "@me"
5858
5959
List PRs by label, combining multiple labels with AND
6060
$ gh pr list --label bug --label "priority 1"

0 commit comments

Comments
 (0)