WithLaunchingShell marks the context as launching a shell after start, suppressing the "READY. Run ... to open the shell" message.
(ctx context.Context)
| 401 | // WithLaunchingShell marks the context as launching a shell after start, |
| 402 | // suppressing the "READY. Run ... to open the shell" message. |
| 403 | func 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. |
| 408 | func isLaunchingShell(ctx context.Context) bool { |