@@ -12,6 +12,7 @@ use nix::sys::prctl::set_pdeathsig;
12
12
use nix:: sys:: signal:: Signal ;
13
13
use nix:: sys:: wait:: { waitpid, WaitStatus } ;
14
14
use nix:: unistd:: { close, Gid , Uid } ;
15
+ use owo_colors:: OwoColorize ;
15
16
use std:: ffi:: OsString ;
16
17
use std:: fs:: OpenOptions ;
17
18
use std:: io:: Write ;
@@ -148,6 +149,16 @@ fn main() -> eyre::Result<()> {
148
149
. wrap_err ( "Setting gid_map for child process" ) ?;
149
150
}
150
151
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
+
151
162
// Close writing pipe. Setup is done
152
163
close ( pipe. 1 ) ?;
153
164
@@ -158,6 +169,12 @@ fn main() -> eyre::Result<()> {
158
169
error ! ( ?r#return) ;
159
170
}
160
171
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
+
161
178
Ok ( ( ) )
162
179
}
163
180
@@ -247,19 +264,6 @@ fn setup(config: &Config) -> eyre::Result<()> {
247
264
f. write ( msg. as_bytes ( ) ) ?;
248
265
}
249
266
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
-
263
267
Ok ( ( ) )
264
268
}
265
269
0 commit comments