diff --git a/lib/core/core/cli/en.yml b/lib/core/core/cli/en.yml deleted file mode 100644 index a65cdb10a65a95e49b7fdb9007cb1dd0935136b1..0000000000000000000000000000000000000000 --- a/lib/core/core/cli/en.yml +++ /dev/null @@ -1,169 +0,0 @@ -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 diff --git a/lib/core/core/lib.rs b/lib/core/core/lib.rs index f97e6a977845a89c1ac77f3ef5744c231da2ec5e..62e07b5eb6abf149e8a97777188be2def9f9a6ed 100644 --- a/lib/core/core/lib.rs +++ b/lib/core/core/lib.rs @@ -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,