Skip to content

Commit b656ec4

Browse files
committed
Move protocol gov command to top-level
The gov is a subcommand, unlike the other `protocol` commands. So in the help test it does not stand out as a different category. There is no out of the box way with Click to put subcommands in different sections. It makes sense to move the gov command to the top-level. At the top-level using the full name `governance` seems appropriate.
1 parent 1bf3689 commit b656ec4

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

aut/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def aut(verbose: bool) -> None:
4040
aut.add_command(block.block_group)
4141
aut.add_command(tx.tx_group)
4242
aut.add_command(protocol.protocol_group)
43-
protocol.protocol_group.add_command(governance.governance_group)
43+
aut.add_command(governance.governance_group)
4444
aut.add_command(validator.validator)
4545
aut.add_command(account.account_group)
4646
aut.add_command(token.token_group)

aut/commands/governance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616

17-
@group(name="gov")
17+
@group(name="governance")
1818
def governance_group() -> None:
1919
"""
2020
Commands that can only be called by the governance operator account.

scripts/test_governance

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ pushd _test_governance_cli
99
../scripts/setup_config_file.sh
1010

1111
# Test help text (does some parameter validation)
12-
aut protocol gov set-max-bond-applied-gas --help > /dev/null
13-
aut protocol gov set-max-unbond-applied-gas --help > /dev/null
14-
aut protocol gov set-max-unbond-released-gas --help > /dev/null
15-
aut protocol gov set-max-rewards-distribution-gas --help > /dev/null
16-
aut protocol gov set-staking-gas-price --help > /dev/null
17-
aut protocol gov set-minimum-base-fee --help > /dev/null
18-
aut protocol gov set-committee-size --help > /dev/null
19-
aut protocol gov set-unbonding-period --help > /dev/null
20-
aut protocol gov set-epoch-period --help > /dev/null
21-
aut protocol gov set-operator-account --help > /dev/null
22-
aut protocol gov set-treasury-account --help > /dev/null
23-
aut protocol gov set-treasury-fee --help > /dev/null
24-
aut protocol gov set-accountability-contract --help > /dev/null
25-
aut protocol gov set-oracle-contract --help > /dev/null
26-
aut protocol gov set-acu-contract --help > /dev/null
27-
aut protocol gov set-supply-control-contract --help > /dev/null
28-
aut protocol gov set-stabilization-contract --help > /dev/null
29-
aut protocol gov set-inflation-controller-contract --help > /dev/null
30-
aut protocol gov set-upgrade-manager-contract --help > /dev/null
31-
aut protocol gov set-non-stakable-vesting-contract --help > /dev/null
32-
aut protocol gov mint --help > /dev/null
33-
aut protocol gov burn --help > /dev/null
12+
aut governance set-max-bond-applied-gas --help > /dev/null
13+
aut governance set-max-unbond-applied-gas --help > /dev/null
14+
aut governance set-max-unbond-released-gas --help > /dev/null
15+
aut governance set-max-rewards-distribution-gas --help > /dev/null
16+
aut governance set-staking-gas-price --help > /dev/null
17+
aut governance set-minimum-base-fee --help > /dev/null
18+
aut governance set-committee-size --help > /dev/null
19+
aut governance set-unbonding-period --help > /dev/null
20+
aut governance set-epoch-period --help > /dev/null
21+
aut governance set-operator-account --help > /dev/null
22+
aut governance set-treasury-account --help > /dev/null
23+
aut governance set-treasury-fee --help > /dev/null
24+
aut governance set-accountability-contract --help > /dev/null
25+
aut governance set-oracle-contract --help > /dev/null
26+
aut governance set-acu-contract --help > /dev/null
27+
aut governance set-supply-control-contract --help > /dev/null
28+
aut governance set-stabilization-contract --help > /dev/null
29+
aut governance set-inflation-controller-contract --help > /dev/null
30+
aut governance set-upgrade-manager-contract --help > /dev/null
31+
aut governance set-non-stakable-vesting-contract --help > /dev/null
32+
aut governance mint --help > /dev/null
33+
aut governance burn --help > /dev/null
3434

3535
set +e
3636
set +x

0 commit comments

Comments
 (0)