From d63f7d4bf2831387708367a623c88becd532dac4 Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Mon, 27 May 2019 17:05:52 -0700 Subject: [PATCH] Rename bash command to shell @iwilltry42 suggested to group all shell support under and single subcommand -- shell. --- cli/commands.go | 2 +- main.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/commands.go b/cli/commands.go index aaa63f77..98875bff 100644 --- a/cli/commands.go +++ b/cli/commands.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")) } diff --git a/main.go b/main.go index 7938483d..8d59f319 100644 --- a/main.go +++ b/main.go @@ -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