Add address output to mdbook serve

This commit is contained in:
Boris-Chengbiao Zhou 2016-04-27 22:29:48 +02:00
parent 6bc088db6e
commit e3f398cff2
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
ws_server.listen(&*ws_address).unwrap();
});
println!("\nServing on {}", address);
trigger_on_change(&mut book, move |event, book| {
if let Some(path) = event.path {
println!("File changed: {:?}\nBuilding book...\n", path);