diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-11-06 17:34:54 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-11-06 17:34:54 +0100 |
commit | 1b6bc078d6fa12ee62756c02dbaba0be671307b4 (patch) | |
tree | c75e5b38fe2e9d8bfc451ff0db122bb451ec7bcb /examples/zotcli.rs | |
parent | 203de7061c04ae8fbe2b57e755da00c2f66a5a97 (diff) | |
download | rust-zotapi-1b6bc078d6fa12ee62756c02dbaba0be671307b4.tar.gz rust-zotapi-1b6bc078d6fa12ee62756c02dbaba0be671307b4.tar.bz2 rust-zotapi-1b6bc078d6fa12ee62756c02dbaba0be671307b4.zip |
Move abconfig example to new example app.
Diffstat (limited to 'examples/zotcli.rs')
-rw-r--r-- | examples/zotcli.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/zotcli.rs b/examples/zotcli.rs index c3cfc8b..672e3ef 100644 --- a/examples/zotcli.rs +++ b/examples/zotcli.rs @@ -60,6 +60,9 @@ fn main() { .long("raw") .help("Display raw json payload"))) .subcommand( + SubCommand::with_name("abconfig") + .about("Fetch abconfig")) + .subcommand( SubCommand::with_name("xchan") .about("Fetch xchan info") .arg(Arg::with_name("raw") @@ -96,6 +99,9 @@ fn main() { let raw = m.is_present("raw"); zot::network_stream::fetch(&client, raw); }, + ("abconfig", _) => { + zot::abconfig::fetch(&client); + }, ("abook", Some(m)) => { let raw = m.is_present("raw"); zot::abook::fetch(&client, raw); |