Skip to content

Commit 03f57f8

Browse files
committed
tweak msg
1 parent 8d99d70 commit 03f57f8

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

src/main.rs

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use nix::sys::prctl::set_pdeathsig;
1212
use nix::sys::signal::Signal;
1313
use nix::sys::wait::{waitpid, WaitStatus};
1414
use nix::unistd::{close, Gid, Uid};
15+
use owo_colors::OwoColorize;
1516
use std::ffi::OsString;
1617
use std::fs::OpenOptions;
1718
use std::io::Write;
@@ -148,6 +149,16 @@ fn main() -> eyre::Result<()> {
148149
.wrap_err("Setting gid_map for child process")?;
149150
}
150151

152+
println!("You are now {}", "hovering~".bold());
153+
println!(
154+
" A layer is covering your {}",
155+
config.target.to_string_lossy().bold().red()
156+
);
157+
println!(
158+
" You can find your top layer in: {}",
159+
config.layer.to_string_lossy().bold().red()
160+
);
161+
151162
// Close writing pipe. Setup is done
152163
close(pipe.1)?;
153164

@@ -158,6 +169,12 @@ fn main() -> eyre::Result<()> {
158169
error!(?r#return);
159170
}
160171

172+
println!("Leaving {}", "hover".bold());
173+
println!(
174+
" You can find your top layer in: {}",
175+
config.layer.to_string_lossy().bold().red()
176+
);
177+
161178
Ok(())
162179
}
163180

@@ -247,19 +264,6 @@ fn setup(config: &Config) -> eyre::Result<()> {
247264
f.write(msg.as_bytes())?;
248265
}
249266

250-
{
251-
use owo_colors::OwoColorize;
252-
println!("You are now {}", "hovering~".bold());
253-
println!(
254-
" A layer is covering your {}",
255-
config.target.to_string_lossy().bold().red()
256-
);
257-
println!(
258-
" You will find the leftovers at: {}",
259-
config.layer.to_string_lossy().bold().red()
260-
);
261-
}
262-
263267
Ok(())
264268
}
265269

0 commit comments

Comments
 (0)