Skip to content

Commit 4f1e9da

Browse files
authored
Ketan/cli help tweak (#2803)
* fix CLI help text for logout "log out" is verb, "logout" is a noun * add CLI help for port-forward command (#2802) * found another noun where a verb should be
1 parent 88f852b commit 4f1e9da

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cli/dotfiles.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func dotfiles() *cobra.Command {
2424
cmd := &cobra.Command{
2525
Use: "dotfiles [git_repo_url]",
2626
Args: cobra.ExactArgs(1),
27-
Short: "Checkout and install a dotfiles repository.",
27+
Short: "Check out and install a dotfiles repository.",
2828
Example: "coder dotfiles [-y] git@github.com:example/dotfiles.git",
2929
RunE: func(cmd *cobra.Command, args []string) error {
3030
var (

cli/logout.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func logout() *cobra.Command {
2626
config := createConfig(cmd)
2727

2828
_, err = cliui.Prompt(cmd, cliui.PromptOptions{
29-
Text: "Are you sure you want to logout?",
29+
Text: "Are you sure you want to log out?",
3030
IsConfirm: true,
3131
Default: "yes",
3232
})

cli/portforward.go

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func portForward() *cobra.Command {
2929
)
3030
cmd := &cobra.Command{
3131
Use: "port-forward <workspace>",
32+
Short: "Forward one or more ports from the local machine to the remote workspace",
3233
Aliases: []string{"tunnel"},
3334
Args: cobra.ExactArgs(1),
3435
Example: `

0 commit comments

Comments
 (0)