mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
cli: Remove old cashierd_cli code.
This commit is contained in:
@@ -1,68 +0,0 @@
|
||||
use crate::Result;
|
||||
use clap::{App, Arg};
|
||||
|
||||
pub struct CashierdCli {
|
||||
pub verbose: bool,
|
||||
pub hello: bool,
|
||||
pub wallet: bool,
|
||||
pub info: bool,
|
||||
pub stop: bool,
|
||||
}
|
||||
|
||||
impl CashierdCli {
|
||||
pub fn load() -> Result<Self> {
|
||||
let app = App::new("Cashier CLI")
|
||||
.version("0.1.0")
|
||||
.author("Dark Renaissance Technologies")
|
||||
.about("run service daemon")
|
||||
.arg(
|
||||
Arg::with_name("verbose")
|
||||
.short("v")
|
||||
.help("Increase verbosity")
|
||||
.long("verbose")
|
||||
.takes_value(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("hello")
|
||||
.long("hello")
|
||||
.help("Say hello")
|
||||
.takes_value(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("wallet")
|
||||
.short("w")
|
||||
.long("wallet")
|
||||
.help("Create a new wallet")
|
||||
.takes_value(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("info")
|
||||
.short("i")
|
||||
.long("info")
|
||||
.help("Request info from daemon")
|
||||
.takes_value(false),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("stop")
|
||||
.short("s")
|
||||
.long("stop")
|
||||
.help("Send a stop signal to the daemon")
|
||||
.takes_value(false),
|
||||
)
|
||||
.get_matches();
|
||||
|
||||
let verbose = app.is_present("verbose");
|
||||
let wallet = app.is_present("wallet");
|
||||
let info = app.is_present("info");
|
||||
let hello = app.is_present("hello");
|
||||
let stop = app.is_present("stop");
|
||||
|
||||
Ok(Self {
|
||||
verbose,
|
||||
wallet,
|
||||
info,
|
||||
hello,
|
||||
stop,
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
pub mod cashierd_cli;
|
||||
pub mod cli_config;
|
||||
pub mod gatewayd_cli;
|
||||
|
||||
pub use cashierd_cli::CashierdCli;
|
||||
pub use cli_config::{CashierdConfig, Config, DarkfidConfig, DrkConfig, GatewaydConfig};
|
||||
pub use gatewayd_cli::GatewaydCli;
|
||||
|
||||
Reference in New Issue
Block a user