mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Build out 'build' command
This commit is contained in:
parent
8aee5c769f
commit
c61d6a5804
2 changed files with 77 additions and 13 deletions
|
|
@ -1,6 +1,9 @@
|
|||
#[macro_use] extern crate log;
|
||||
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
env,
|
||||
process,
|
||||
};
|
||||
|
||||
use clap::clap_app;
|
||||
|
|
@ -73,9 +76,16 @@ fn main() {
|
|||
let options = commands::BuildOptions {
|
||||
fuzzy_project_path,
|
||||
output_file,
|
||||
output_kind: None, // TODO: Accept from argument
|
||||
};
|
||||
|
||||
commands::build(&options);
|
||||
match commands::build(&options) {
|
||||
Ok(_) => {},
|
||||
Err(e) => {
|
||||
error!("{}", e);
|
||||
process::exit(1);
|
||||
},
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
app.print_help().expect("Could not print help text to stdout!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue