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

Update f() names used as commands (#430)

parent a3bcd659
No related branches found
No related tags found
1 merge request!219Organize commands into subcommands (#430)
......@@ -31,14 +31,14 @@ from silkaj.constants import (
SILKAJ_VERSION,
)
from silkaj.g1_monetary_license import license_command
from silkaj.money.balance import cmd_amount
from silkaj.money.balance import balance_cmd
from silkaj.money.history import transaction_history
from silkaj.money.transfer import send_transaction
from silkaj.money.transfer import transfer_money
from silkaj.wot import revocation
from silkaj.wot.certification import send_certification
from silkaj.wot.lookup import id_pubkey_correspondence
from silkaj.wot.lookup import lookup_cmd
from silkaj.wot.membership import send_membership
from silkaj.wot.wot import received_sent_certifications
from silkaj.wot.wot import status
@group()
......@@ -149,9 +149,9 @@ def money_group() -> None:
pass
money_group.add_command(cmd_amount)
money_group.add_command(balance_cmd)
money_group.add_command(transaction_history)
money_group.add_command(send_transaction)
money_group.add_command(transfer_money)
@cli.group("wot", help="Web-of-Trust related commands")
......@@ -161,9 +161,9 @@ def wot_group() -> None:
wot_group.add_command(send_certification)
wot_group.add_command(id_pubkey_correspondence)
wot_group.add_command(lookup_cmd)
wot_group.add_command(send_membership)
wot_group.add_command(received_sent_certifications)
wot_group.add_command(status)
@wot_group.group(
......
......@@ -30,7 +30,7 @@ from silkaj.wot import tools as wt
@command("balance", help="Get wallet balance")
@argument("pubkeys", nargs=-1)
@pass_context
def cmd_amount(ctx: Context, pubkeys: str) -> None:
def balance_cmd(ctx: Context, pubkeys: str) -> None:
if not has_auth_method():
# check input pubkeys
......
......@@ -116,7 +116,7 @@ relative reference and recipients’ pubkeys",
@click.option(
"--yes", "-y", is_flag=True, help="Assume yes. Do not prompt confirmation"
)
def send_transaction(
def transfer_money(
amounts: List[float],
amountsud: List[float],
allsources: bool,
......
......@@ -24,7 +24,7 @@ from silkaj.wot import tools as wt
@click.command("lookup", help="User identifier and public key lookup")
@click.argument("uid_pubkey")
def id_pubkey_correspondence(uid_pubkey: str) -> None:
def lookup_cmd(uid_pubkey: str) -> None:
checked_pubkey = is_pubkey_and_check(uid_pubkey)
if checked_pubkey:
uid_pubkey = str(checked_pubkey)
......
......@@ -50,7 +50,7 @@ def get_sent_certifications(
consult the membership status of any given identity",
)
@click.argument("uid_pubkey")
def received_sent_certifications(uid_pubkey: str) -> None:
def status(uid_pubkey: str) -> None:
"""
get searched id
get id of received and sent certifications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment