Add main()

This commit is contained in:
Matthias Beyer 2016-06-26 11:31:46 +02:00
parent 56759ecba8
commit 6fc05a027b

View file

@ -13,5 +13,34 @@ mod ui;
use ui::build_ui; use ui::build_ui;
fn main() { fn main() {
println!("Hello, world!"); let rt = generate_runtime_setup("imag-ref",
&version!()[..],
"Reference files outside of the store",
build_ui);
rt.cli()
.subcommand_name()
.map(|name| {
debug!("Call: {}", name);
match name {
"add" => add(&rt),
"remove" => remove(&rt),
"list" => list(&rt),
_ => {
debug!("Unknown command"); // More error handling
},
};
});
} }
fn add(rt: &Runtime) {
unimplemented!()
}
fn remove(rt: &Runtime) {
unimplemented!()
}
fn list(rt: &Runtime) {
unimplemented!()
}