Skip to content

Commit

Permalink
Merge pull request #186 from rancher-sandbox/shell-start
Browse files Browse the repository at this point in the history
Fix `lima (start|stop|shell)` suggestion to remove instance name
  • Loading branch information
AkihiroSuda authored Sep 2, 2021
2 parents 4c40d10 + d677c6e commit de25ccc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/limactl/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ func shellAction(clicontext *cli.Context) error {
switch clicontext.Args().Get(1) {
case "start", "delete", "shell":
// `lima start` (alias of `limactl $LIMA_INSTANCE start`) is probably a typo of `limactl start`
logrus.Warnf("Perhaps you meant `limactl %s %s %s`?",
clicontext.Args().Get(1),
clicontext.Args().First(),
strings.Join(clicontext.Args().Slice()[2:], " "))
logrus.Warnf("Perhaps you meant `limactl %s`?", strings.Join(clicontext.Args().Slice()[1:], " "))
}

inst, err := store.Inspect(instName)
Expand Down

0 comments on commit de25ccc

Please sign in to comment.