summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-08 17:50:29 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-08 18:44:24 +0100
commit7ae0325d7e54df8db88bc7bc757c3cb674a0fb0f (patch)
treed5aed5f5c9681c954f6756550ca219d48b1dee1a /src/main.rs
parent82add278cc59329345c49554539922926635ee70 (diff)
Split codebase in subcrates for lib, cli and gui
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main.rs b/src/main.rs
deleted file mode 100644
index 3caf1ae..0000000
--- a/src/main.rs
+++ /dev/null
@@ -1,31 +0,0 @@
-use anyhow::Result;
-
-pub mod cli;
-pub mod client;
-mod commands;
-pub mod config;
-pub mod consts;
-pub mod ipfs_client;
-pub mod profile;
-pub mod types;
-mod gui;
-
-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,
- Some(("gui", _)) => crate::gui::run(),
- Some((other, _)) => {
- log::error!("No subcommand {} implemented", other);
- Ok(())
- },
-
- _ => {
- log::error!("Don't know what to do");
- Ok(())
- },
- }
-}
-