Skip to content
Snippets Groups Projects
Commit 4a3f79a7 authored by Moul's avatar Moul
Browse files

[mod] remove old clap CLI tool usage relics

parent 4e902403
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !121. Comments created here will be created in the context of that merge request.
name: durs
version: "0.1.0"
author: Elois L. <elois@duniter.org>
about: Rust implementation of Duniter
args:
- profile:
short: p
long: profile
value_name: CUSTOM_PROFILE
help: Set a custom datas folder
takes_value: true
- logs:
short: l
long : logs
value_name: LOGS_LEVEL
takes_value: true
possible_values: ["e", "w", "i", "d", "t", "error", "warn", "info", "debug", "trace"]
help: Set the level of logs verbosity
long_help: "Set the level of logs verbosity :\n
error : print serious errors\n
warn : print hazardous situations\n
info : default level\n
debug : print a lot of debug informations\n
trace : print all traces (highly verbose)"
subcommands:
- enable:
about: Enable some module
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- MODULE_NAME:
help: The module name to enable
index: 1
required: true
- disable:
about: Disable some module
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- MODULE_NAME:
help: The module name to disable
index: 1
required: true
- modules:
about: list module
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- disabled:
short: d
long: disabled
help: list only disabled modules
- enabled:
short: e
long: enabled
help: list only enabled modules
- network:
short: n
long: network
help: list only network modules
- secret:
short: s
long: secret
help: list only modules having access to the secret member key
- start:
about: start duniter server
version: "0.1.0"
author: Elois L. <elois@duniter.org>
- sync:
about: synchronization from network
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- DOMAIN_OR_IP:
help: The domain name or ip address of the node from which to synchronize.
index: 1
required: true
- PORT:
help: The port number of the node from which to synchronize.
index: 2
required: true
- PATH:
help: The endpoint path of the node from which to synchronize.
index: 3
- cautious:
short: c
long: cautious
help: cautious mode (check all protocol rules, very slow)
- unsafe:
short: u
long: unsafe
help: unsafe mode (not check blocks inner hashs, very dangerous)
- sync_ts:
about: synchronization via a duniter-ts database
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- TS_PROFILE:
help: Set the ts profile to use
index: 1
- cautious:
short: c
long: cautious
help: cautious mode (check all protocol rules, very slow)
- unsafe:
short: u
long: unsafe
help: unsafe mode (not check blocks inner hashs, very dangerous)
- dbex:
about: durs databases explorer
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- csv:
short: c
long: csv
help: csv output
subcommands:
- distances:
about: durs databases explorer (distances datas)
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- reverse:
short: r
long: reverse
help: reverse order
- member:
about: durs databases explorer (wot member datas)
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- UID:
help : choose member uid
index: 1
required: true
- members:
about: durs databases explorer (wot members datas)
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- expire:
short: e
long: expire
help: show members expire date
- reverse:
short: r
long: reverse
help: reverse order
- balance:
about: durs databases explorer (balances datas)
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- ADDRESS:
help : public key or uid
index: 1
required: true
- reset:
about: reset data or conf or all
version: "0.1.0"
author: Elois L. <elois@duniter.org>
args:
- DATAS_TYPE:
help : choose type datas to reset
index: 1
possible_values: ["data","conf","all"]
required: true
\ No newline at end of file
......@@ -178,9 +178,6 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
cli_conf: &'a App<'b, 'a>,
run_duration_in_secs: u64,
) -> DuniterCore<'b, 'a, DuRsConf> {
// Get cli conf
//let yaml = load_yaml!("./cli/en.yml");
//let cli_conf = TupleApp(App::from_yaml(yaml));
DuniterCore {
cli_conf: TupleApp(cli_conf),
cli_args: None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment