Skip to content

Commit ad8bec7

Browse files
authored
Fixes root alias, correct child commands, table headers (#43)
1 parent b0e07e4 commit ad8bec7

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

bittensor_cli/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def __init__(self):
349349
name="root",
350350
short_help="Root commands, alias: `r`",
351351
)
352-
self.app.add_typer(self.root_app, name="d", hidden=True)
352+
self.app.add_typer(self.root_app, name="r", hidden=True)
353353

354354
# stake aliases
355355
self.app.add_typer(
@@ -2868,7 +2868,7 @@ def stake_set_children(
28682868
28692869
# Example usage:
28702870
2871-
[green]$[/green] btcli stake set_children - <child_hotkey> -c <child_hotkey> --hotkey <parent_hotkey> --netuid 1
2871+
[green]$[/green] btcli stake child set - <child_hotkey> -c <child_hotkey> --hotkey <parent_hotkey> --netuid 1
28722872
-p 0.3 -p 0.3
28732873
28742874
[italic]]Note[/italic]: This command is critical for users who wish to delegate children hotkeys among different
@@ -2925,7 +2925,7 @@ def stake_revoke_children(
29252925
29262926
# Example usage:
29272927
2928-
[green]$[/green] btcli stake revoke_children --hotkey <parent_hotkey> --netuid 1
2928+
[green]$[/green] btcli stake child revoke --hotkey <parent_hotkey> --netuid 1
29292929
29302930
[italic]Note[/italic]:This command is critical for users who wish to remove children hotkeys on the network.
29312931
It allows for a complete removal of delegated authority to enhance network participation and influence.

bittensor_cli/src/commands/root.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ async def get_senate(subtensor: SubtensorInterface):
11041104
style="bright_magenta",
11051105
no_wrap=True,
11061106
),
1107-
title="[dark_orange]Senate",
1107+
title="[underline dark_orange]Senate",
11081108
show_footer=True,
11091109
show_edge=False,
11101110
expand=False,

bittensor_cli/src/commands/stake.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,8 +1719,8 @@ async def _render_table(
17191719
)
17201720
if prompt:
17211721
command = (
1722-
f"`btcli stake set_children --children <child_hotkey> --hotkey <parent_hotkey> "
1723-
f"--netuid {netuid} --proportion <float>`"
1722+
f"`btcli stake child set --children <child_hotkey> --hotkey <parent_hotkey> "
1723+
f"--netuid {netuid} --proportions <float>`"
17241724
)
17251725
console.print(
17261726
f"[bold cyan]To add a child hotkey you can run the command: [white]{command}[/white][/bold cyan]"

0 commit comments

Comments
 (0)