mirror of https://github.com/coder/coder.git
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:
parent
88f852b42f
commit
4f1e9dae27
|
@ -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 (
|
||||
|
|
|
@ -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",
|
||||
})
|
||||
|
|
|
@ -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: `
|
||||
|
|
Loading…
Reference in New Issue