summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs17
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(())
+ },
+ }
}