Merge pull request #134 from Bobo1239/serve-print

Add host and port output when running mdbook serve Closes #132
This commit is contained in:
Mathieu David 2016-04-27 22:35:26 +02:00
commit cfcf6d952f
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);