diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-02 19:57:16 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-08 18:43:34 +0100 |
commit | 36dc8675f5757c81d3b78da19d6f7bb4f34a555c (patch) | |
tree | 5bd5a417fce1ab40198f72663ffb6ecaec8047a0 /src/main.rs | |
parent | 969de98ddad7311fbcd74f93910444af8fdb7882 (diff) |
Implement hello-world gui with iced
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 257847c..3caf1ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,17 +8,24 @@ pub mod consts; pub mod ipfs_client; pub mod profile; pub mod types; +mod gui; -#[tokio::main] -async fn main() -> Result<()> { +fn main() -> Result<()> { let _ = env_logger::try_init()?; let matches = crate::cli::app().get_matches(); match matches.subcommand() { Some(("profile", matches)) => crate::commands::profile(matches).await, - _ => unimplemented!() - } - + Some(("gui", _)) => crate::gui::run(), + Some((other, _)) => { + log::error!("No subcommand {} implemented", other); + Ok(()) + }, + _ => { + log::error!("Don't know what to do"); + Ok(()) + }, + } } |