Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
49b46036
Commit
49b46036
authored
2 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
(cli) Organize commands under groups (
#430
)
parent
4498d1d1
No related branches found
No related tags found
1 merge request
!219
Organize commands into subcommands (#430)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
silkaj/cli.py
+37
-13
37 additions, 13 deletions
silkaj/cli.py
with
37 additions
and
13 deletions
silkaj/cli.py
+
37
−
13
View file @
49b46036
...
...
@@ -125,24 +125,48 @@ def cli(
cli
.
add_command
(
about
)
cli
.
add_command
(
argos_info
)
cli
.
add_command
(
generate_auth_file
)
cli
.
add_command
(
cmd_amount
)
cli
.
add_command
(
list_blocks
)
cli
.
add_command
(
send_certification
)
cli
.
add_command
(
checksum_command
)
cli
.
add_command
(
difficulties
)
cli
.
add_command
(
transaction_history
)
cli
.
add_command
(
id_pubkey_correspondence
)
cli
.
add_command
(
currency_info
)
cli
.
add_command
(
license_command
)
cli
.
add_command
(
send_membership
)
cli
.
add_command
(
send_transaction
)
cli
.
add_command
(
verify_blocks_signatures
)
cli
.
add_command
(
received_sent_certifications
)
@cli.group
(
@cli.group
(
"
blockchain
"
,
help
=
"
Blockchain related commands
"
)
@help_option
(
"
-h
"
,
"
--help
"
)
def
blockchain_group
()
->
None
:
pass
blockchain_group
.
add_command
(
argos_info
)
blockchain_group
.
add_command
(
list_blocks
)
blockchain_group
.
add_command
(
difficulties
)
blockchain_group
.
add_command
(
currency_info
)
blockchain_group
.
add_command
(
verify_blocks_signatures
)
@cli.group
(
"
money
"
,
help
=
"
Money management related commands
"
)
@help_option
(
"
-h
"
,
"
--help
"
)
def
money_group
()
->
None
:
pass
money_group
.
add_command
(
cmd_amount
)
money_group
.
add_command
(
transaction_history
)
money_group
.
add_command
(
send_transaction
)
@cli.group
(
"
wot
"
,
help
=
"
Web-of-Trust related commands
"
)
@help_option
(
"
-h
"
,
"
--help
"
)
def
wot_group
()
->
None
:
pass
wot_group
.
add_command
(
send_certification
)
wot_group
.
add_command
(
id_pubkey_correspondence
)
wot_group
.
add_command
(
send_membership
)
wot_group
.
add_command
(
received_sent_certifications
)
@wot_group.group
(
"
revocation
"
,
help
=
"
Create, save, verify or publish revocation document.
\n\
Subcommands optionally take the path to the revocation document.
"
,
...
...
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