MCPcopy
hub / github.com/lima-vm/lima / WithLaunchingShell

Function WithLaunchingShell

pkg/instance/start.go:403–405  ·  view source on GitHub ↗

WithLaunchingShell marks the context as launching a shell after start, suppressing the "READY. Run ... to open the shell" message.

(ctx context.Context)

Source from the content-addressed store, hash-verified

401// WithLaunchingShell marks the context as launching a shell after start,
402// suppressing the "READY. Run ... to open the shell" message.
403func WithLaunchingShell(ctx context.Context) context.Context {
404 return context.WithValue(ctx, launchingShellKey{}, true)
405}
406
407// IsLaunchingShell returns whether the launching shell flag is set in the context.
408func isLaunchingShell(ctx context.Context) bool {

Callers 1

shellActionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected