Rename bash command to shell

@iwilltry42 suggested to group all shell support under and single
subcommand -- shell.
pull/66/head
Andy Zhou 5 years ago
parent 8aaf70f4bf
commit d63f7d4bf2
  1. 2
      cli/commands.go
  2. 8
      main.go

@ -354,6 +354,6 @@ func GetKubeConfig(c *cli.Context) error {
return nil
}
func Bash(c *cli.Context) error {
func Shell(c *cli.Context) error {
return bashShell(c.String("name"), c.String("command"))
}

@ -46,9 +46,9 @@ func main() {
Action: run.CheckTools,
},
{
// bash starts a bash shell in the context of a runnign cluster
Name: "bash",
Usage: "Start a bash subshell for a cluster",
// shell starts a shell in the context of a running cluster
Name: "shell",
Usage: "Start a subshell for a cluster",
Flags: []cli.Flag{
cli.StringFlag{
Name: "name, n",
@ -60,7 +60,7 @@ func main() {
Usage: "Run a shell command in the context of the cluster",
},
},
Action: run.Bash,
Action: run.Shell,
},
{
// create creates a new k3s cluster in docker containers

Loading…
Cancel
Save