Skip to content

Commit d677c6e

Browse files
committed
Fix lima (start|stop|shell) suggestion to remove instance name
Because the lima wrapper turns `lima start foo` into `limactl shell default start foo` and the instance name should not be part of the suggestion "Perhaps you meant `limactl start foo`". Signed-off-by: Jan Dubois <[email protected]>
1 parent 4c40d10 commit d677c6e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/limactl/shell.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ func shellAction(clicontext *cli.Context) error {
4141
switch clicontext.Args().Get(1) {
4242
case "start", "delete", "shell":
4343
// `lima start` (alias of `limactl $LIMA_INSTANCE start`) is probably a typo of `limactl start`
44-
logrus.Warnf("Perhaps you meant `limactl %s %s %s`?",
45-
clicontext.Args().Get(1),
46-
clicontext.Args().First(),
47-
strings.Join(clicontext.Args().Slice()[2:], " "))
44+
logrus.Warnf("Perhaps you meant `limactl %s`?", strings.Join(clicontext.Args().Slice()[1:], " "))
4845
}
4946

5047
inst, err := store.Inspect(instName)

0 commit comments

Comments
 (0)