Skip to content

Commit

Permalink
improved wormhole code display for serve and send
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelPanic0x committed Sep 5, 2024
1 parent 73790ef commit cb72ef0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,15 @@ fn server_print_code(
code: &magic_wormhole::Code,
_: &Option<url::Url>,
) -> eyre::Result<()> {
#[cfg(feature = "clipboard")]
writeln!(
term,
"\nThis wormhole's code is: {} (it has been copied to your clipboard)",
style(&code).bold()
)?;
#[cfg(not(feature = "clipboard"))]
writeln!(term, "\nThis wormhole's code is: {}", style(&code).bold())?;

writeln!(
term,
"On the other side, enter that code into a Magic Wormhole client\n"
Expand Down

0 comments on commit cb72ef0

Please sign in to comment.