Skip to content
Snippets Groups Projects

CLI improvements

Merged Moul requested to merge moul/cli_improvements into dev
2 files
+ 0
172
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
169
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
Loading