WIP: Epiphany Refactor (#85)

This commit is contained in:
Lucien Greathouse
2018-08-26 01:03:53 -07:00
committed by GitHub
parent 80b9b7594b
commit 72bc77f1d5
52 changed files with 1145 additions and 2157 deletions

View File

@@ -42,20 +42,7 @@ fn main() {
None => std::env::current_dir().unwrap(),
};
let port = {
match sub_matches.value_of("port") {
Some(source) => match source.parse::<u64>() {
Ok(value) => Some(value),
Err(_) => {
eprintln!("Invalid port '{}'", source);
process::exit(1);
},
},
None => None,
}
};
librojo::commands::serve(&project_path, port);
librojo::commands::serve(&project_path);
},
_ => {
eprintln!("Please specify a subcommand!");
@@ -63,4 +50,4 @@ fn main() {
process::exit(1);
},
}
}
}