Add address output to mdbook serve
This commit is contained in:
parent
6bc088db6e
commit
e3f398cff2
|
@ -226,6 +226,8 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
|
||||||
ws_server.listen(&*ws_address).unwrap();
|
ws_server.listen(&*ws_address).unwrap();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
println!("\nServing on {}", address);
|
||||||
|
|
||||||
trigger_on_change(&mut book, move |event, book| {
|
trigger_on_change(&mut book, move |event, book| {
|
||||||
if let Some(path) = event.path {
|
if let Some(path) = event.path {
|
||||||
println!("File changed: {:?}\nBuilding book...\n", path);
|
println!("File changed: {:?}\nBuilding book...\n", path);
|
||||||
|
|
Loading…
Reference in New Issue