cli: only show other interactive attach commands when in a terminal (#181163)

* testing: another fix to avoid automatically queuing

Fixes #180041 again

* cli: only show other interactive attach commands when in a terminal

Fixes #178091
This commit is contained in:
Connor Peet 2023-04-28 15:13:26 -07:00 committed by GitHub
parent a07d58a713
commit 43e0111e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,15 +39,15 @@ struct SingletonServerContext {
}
const CONTROL_INSTRUCTIONS_COMMON: &str =
"Connected to an existing tunnel process running on this machine. You can press:
- \"x\" + Enter to stop the tunnel and exit
- \"r\" + Enter to restart the tunnel
";
"Connected to an existing tunnel process running on this machine.";
const CONTROL_INSTRUCTIONS_INTERACTIVE: &str = concatcp!(
CONTROL_INSTRUCTIONS_COMMON,
"- Ctrl+C to detach
" You can press:
- \"x\" + Enter to stop the tunnel and exit
- \"r\" + Enter to restart the tunnel
- Ctrl+C to detach
"
);