summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-02 20:09:43 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-02 20:10:58 +0100
commit30ed04ec9727562f701cce44db4124bfd361dacf (patch)
tree50fabd512eb7850315bdb5d6bd0970fac2abde91 /src
parent262e6e3c813fe539e44790143f89ffe715dfa0fe (diff)
Remove unused CLI interface
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/cli.rs50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 21b27e8..4e01cbb 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,60 +1,10 @@
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("create-profile")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Create a new profile")
-
- .arg(Arg::with_name("content")
- .index(1)
- .multiple(false)
- .takes_value(true)
- .value_name("CONTENT")
- .help("The text posting as first profile content")
- )
- )
-
- .subcommand(App::new("post")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Post to a profile")
- .arg(Arg::with_name("head")
- .index(1)
- .multiple(false)
- .takes_value(true)
- .value_name("HEAD")
- .help("Post with this HEAD as parent")
- )
-
- .arg(Arg::with_name("content")
- .index(2)
- .multiple(false)
- .takes_value(true)
- .value_name("TEXT")
- .help("Post this TEXT as text/text")
- )
- )
-
- .subcommand(App::new("get")
- .author(crate_authors!())
- .version(crate_version!())
- .about("Get block")
- .arg(Arg::with_name("head")
- .index(1)
- .multiple(false)
- .takes_value(true)
- .required(true)
- .value_name("HEAD")
- .help("Get HEAD block")
- )
- )
}