We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cfeeeb commit 4a4a3ddCopy full SHA for 4a4a3dd
cmd/limactl/shell.go
@@ -70,6 +70,10 @@ func newShellCommand() *cobra.Command {
70
func shellAction(cmd *cobra.Command, args []string) error {
71
ctx := cmd.Context()
72
flags := cmd.Flags()
73
+ tty, err := flags.GetBool("tty")
74
+ if err != nil {
75
+ return err
76
+ }
77
// simulate the behavior of double dash
78
newArg := []string{}
79
if len(args) >= 2 && args[1] == "--" {
@@ -100,8 +104,8 @@ func shellAction(cmd *cobra.Command, args []string) error {
100
104
return err
101
105
}
102
106
103
- if !flags.Changed("start") {
- startNow, err = askWhetherToStart()
107
+ if tty && !flags.Changed("start") {
108
+ startNow, err = askWhetherToStart(cmd)
109
if err != nil {
110
111
0 commit comments