summaryrefslogtreecommitdiffstats
path: root/src/cli.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/cli.rs
parent82add278cc59329345c49554539922926635ee70 (diff)
Split codebase in subcrates for lib, cli and gui
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/cli.rs b/src/cli.rs
deleted file mode 100644
index 3f74128..0000000
--- a/src/cli.rs
+++ /dev/null
@@ -1,59 +0,0 @@
-use clap::crate_authors;
-use clap::crate_version;
-use clap::App;
-use clap::Arg;
-
-pub fn app<'a>() -> App<'a> {
- App::new("distrox")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Distributed social network")
-
- .subcommand(App::new("profile")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Profile actions")
-
- .subcommand(App::new("create")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Create profile")
-
- .arg(Arg::new("name")
- .long("name")
- .required(true)
- .takes_value(true)
- .value_name("NAME")
- .about("Name of the profile")
- )
- )
-
- .subcommand(App::new("serve")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Just serve the profile")
-
- .arg(Arg::new("name")
- .long("name")
- .required(true)
- .takes_value(true)
- .value_name("NAME")
- .about("Name of the profile")
- )
-
- .arg(Arg::new("connect")
- .long("connect")
- .required(false)
- .takes_value(true)
- .value_name("MULTIADDR")
- .about("Connect to MULTIADDR as well")
- )
- )
- )
-
- .subcommand(App::new("gui")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Start the distrox gui")
- )
-}