Add main()
This commit is contained in:
parent
56759ecba8
commit
6fc05a027b
1 changed files with 30 additions and 1 deletions
|
@ -13,5 +13,34 @@ mod ui;
|
|||
use ui::build_ui;
|
||||
|
||||
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!()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue