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
This commit is contained in:
Ketan Gangatirkar 2022-07-04 15:48:08 -05:00 committed by GitHub
parent 88f852b42f
commit 4f1e9dae27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

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

View File

@ -26,7 +26,7 @@ func logout() *cobra.Command {
config := createConfig(cmd)
_, err = cliui.Prompt(cmd, cliui.PromptOptions{
Text: "Are you sure you want to logout?",
Text: "Are you sure you want to log out?",
IsConfirm: true,
Default: "yes",
})

View File

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