Skip to content
Snippets Groups Projects
Commit 49b46036 authored by Moul's avatar Moul
Browse files

(cli) Organize commands under groups (#430)

parent 4498d1d1
No related branches found
No related tags found
1 merge request!219Organize commands into subcommands (#430)
......@@ -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.",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment