diff options
Diffstat (limited to 'gui/src/main.rs')
-rw-r--r-- | gui/src/main.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gui/src/main.rs b/gui/src/main.rs new file mode 100644 index 0000000..ea47a93 --- /dev/null +++ b/gui/src/main.rs @@ -0,0 +1,26 @@ +use anyhow::Result; + +mod cli; +mod gui; + +use distrox_lib::*; + +fn main() -> Result<()> { + let _ = env_logger::try_init()?; + let matches = crate::cli::app().get_matches(); + + match matches.subcommand() { + None => crate::gui::run(), + Some((other, _)) => { + log::error!("No subcommand {} implemented", other); + Ok(()) + }, + + _ => { + log::error!("Don't know what to do"); + Ok(()) + }, + } +} + + |