Skip to content

Commit 43e0111

Browse files
authored
cli: only show other interactive attach commands when in a terminal (microsoft#181163)
* testing: another fix to avoid automatically queuing Fixes microsoft#180041 again * cli: only show other interactive attach commands when in a terminal Fixes microsoft#178091
1 parent a07d58a commit 43e0111

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cli/src/tunnels/singleton_client.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ struct SingletonServerContext {
3939
}
4040

4141
const CONTROL_INSTRUCTIONS_COMMON: &str =
42-
"Connected to an existing tunnel process running on this machine. You can press:
43-
44-
- \"x\" + Enter to stop the tunnel and exit
45-
- \"r\" + Enter to restart the tunnel
46-
";
42+
"Connected to an existing tunnel process running on this machine.";
4743

4844
const CONTROL_INSTRUCTIONS_INTERACTIVE: &str = concatcp!(
4945
CONTROL_INSTRUCTIONS_COMMON,
50-
"- Ctrl+C to detach
46+
" You can press:
47+
48+
- \"x\" + Enter to stop the tunnel and exit
49+
- \"r\" + Enter to restart the tunnel
50+
- Ctrl+C to detach
5151
"
5252
);
5353

0 commit comments

Comments
 (0)