Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
12aea3cb
Commit
12aea3cb
authored
6 years ago
by
Moul
Committed by
Éloïs
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[ref] core: remove old clap CLI tool usage relics
parent
5fd550fc
No related branches found
No related tags found
1 merge request
!121
CLI improvements
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/core/core/cli/en.yml
+0
-169
0 additions, 169 deletions
lib/core/core/cli/en.yml
lib/core/core/lib.rs
+0
-3
0 additions, 3 deletions
lib/core/core/lib.rs
with
0 additions
and
172 deletions
lib/core/core/cli/en.yml
deleted
100644 → 0
+
0
−
169
View file @
5fd550fc
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
This diff is collapsed.
Click to expand it.
lib/core/core/lib.rs
+
0
−
3
View file @
12aea3cb
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment