X Tutup
Skip to content

Commit 0d143ca

Browse files
authored
Consistent punctuation in command usages (cli#5139)
* Fix spelling and grammatical errors in command docs * Add periods for consistency across the long command descriptions * Format imports
1 parent a5dddbc commit 0d143ca

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

internal/config/config_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var configOptions = []ConfigOption{
5555
},
5656
{
5757
Key: "http_unix_socket",
58-
Description: "the path to a unix socket through which to make HTTP connection",
58+
Description: "the path to a Unix socket through which to make an HTTP connection",
5959
DefaultValue: "",
6060
},
6161
{

pkg/cmd/auth/refresh/refresh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func NewCmdRefresh(f *cmdutil.Factory, runF func(*RefreshOptions) error) *cobra.
4646
Use: "refresh",
4747
Args: cobra.ExactArgs(0),
4848
Short: "Refresh stored authentication credentials",
49-
Long: heredoc.Doc(`Expand or fix the permission scopes for stored credentials
49+
Long: heredoc.Doc(`Expand or fix the permission scopes for stored credentials.
5050
5151
The --scopes flag accepts a comma separated list of scopes you want your gh credentials to have. If
5252
absent, this command ensures that gh has access to a minimum set of scopes.

pkg/cmd/extension/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
3333
3434
An extension cannot override any of the core gh commands.
3535
36-
See the list of available extensions at <https://github.com/topics/gh-extension>
36+
See the list of available extensions at <https://github.com/topics/gh-extension>.
3737
`, "`"),
3838
Aliases: []string{"extensions"},
3939
}
@@ -82,7 +82,7 @@ func NewCmdExtension(f *cmdutil.Factory) *cobra.Command {
8282
To install an extension in development from the current directory, use "." as the
8383
value of the repository argument.
8484
85-
See the list of available extensions at <https://github.com/topics/gh-extension>
85+
See the list of available extensions at <https://github.com/topics/gh-extension>.
8686
`),
8787
Example: heredoc.Doc(`
8888
$ gh extension install owner/gh-extension

pkg/cmd/gpg-key/gpg_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func NewCmdGPGKey(f *cmdutil.Factory) *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "gpg-key <command>",
1313
Short: "Manage GPG keys",
14-
Long: "Manage GPG keys registered with your GitHub account",
14+
Long: "Manage GPG keys registered with your GitHub account.",
1515
}
1616

1717
cmd.AddCommand(cmdList.NewCmdList(f, nil))

pkg/cmd/issue/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func NewCmdIssue(f *cmdutil.Factory) *cobra.Command {
2020
cmd := &cobra.Command{
2121
Use: "issue <command>",
2222
Short: "Manage issues",
23-
Long: `Work with GitHub issues`,
23+
Long: `Work with GitHub issues.`,
2424
Example: heredoc.Doc(`
2525
$ gh issue list
2626
$ gh issue create --label bug

pkg/cmd/pr/pr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func NewCmdPR(f *cmdutil.Factory) *cobra.Command {
2424
cmd := &cobra.Command{
2525
Use: "pr <command>",
2626
Short: "Manage pull requests",
27-
Long: "Work with GitHub pull requests",
27+
Long: "Work with GitHub pull requests.",
2828
Example: heredoc.Doc(`
2929
$ gh pr checkout 353
3030
$ gh pr create --fill

pkg/cmd/pr/ready/ready.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewCmdReady(f *cmdutil.Factory, runF func(*ReadyOptions) error) *cobra.Comm
3131
Use: "ready [<number> | <url> | <branch>]",
3232
Short: "Mark a pull request as ready for review",
3333
Long: heredoc.Doc(`
34-
Mark a pull request as ready for review
34+
Mark a pull request as ready for review.
3535
3636
Without an argument, the pull request that belongs to the current branch
3737
is marked as ready.

pkg/cmd/repo/rename/rename.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package rename
22

33
import (
44
"fmt"
5-
"github.com/cli/cli/v2/api"
65
"net/http"
76

87
"github.com/AlecAivazis/survey/v2"
98
"github.com/MakeNowJust/heredoc"
9+
"github.com/cli/cli/v2/api"
1010
"github.com/cli/cli/v2/context"
1111
"github.com/cli/cli/v2/git"
1212
"github.com/cli/cli/v2/internal/config"
@@ -41,7 +41,7 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co
4141
cmd := &cobra.Command{
4242
Use: "rename [<new-name>]",
4343
Short: "Rename a repository",
44-
Long: heredoc.Doc(`Rename a GitHub repository
44+
Long: heredoc.Doc(`Rename a GitHub repository.
4545
4646
By default, this renames the current repository; otherwise renames the specified repository.`),
4747
Args: cobra.MaximumNArgs(1),

pkg/cmd/repo/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewCmdRepo(f *cmdutil.Factory) *cobra.Command {
2323
cmd := &cobra.Command{
2424
Use: "repo <command>",
2525
Short: "Create, clone, fork, and view repositories",
26-
Long: `Work with GitHub repositories`,
26+
Long: `Work with GitHub repositories.`,
2727
Example: heredoc.Doc(`
2828
$ gh repo create
2929
$ gh repo clone cli/cli

pkg/cmd/repo/sync/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewCmdSync(f *cmdutil.Factory, runF func(*SyncOptions) error) *cobra.Comman
4444
Long: heredoc.Docf(`
4545
Sync destination repository from source repository. Syncing uses the main branch
4646
of the source repository to update the matching branch on the destination
47-
repository so they are equal. A fast forward update will be used execept when the
47+
repository so they are equal. A fast forward update will be used except when the
4848
%[1]s--force%[1]s flag is specified, then the two branches will
4949
by synced using a hard reset.
5050

0 commit comments

Comments
 (0)
X Tutup