From 9842fd95efe8e0b1e2b2f52bb839cb97f13dd6a9 Mon Sep 17 00:00:00 2001 From: bdhimes Date: Mon, 6 Oct 2025 21:18:59 +0200 Subject: [PATCH 1/4] Ensures no error at the end of `btcli --commands` --- bittensor_cli/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 5fcaa9785..138d26d6a 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -617,6 +617,7 @@ def commands_callback(value: bool): if value: cli = CLIManager() console.print(cli.generate_command_tree()) + raise typer.Exit() def debug_callback(value: bool): From b1f2a22cb57162fef602aad455521e1b14afd965 Mon Sep 17 00:00:00 2001 From: bdhimes Date: Mon, 6 Oct 2025 21:19:11 +0200 Subject: [PATCH 2/4] Hides the associate_hotkey alias --- bittensor_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 138d26d6a..a6d6bca55 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -1106,7 +1106,7 @@ def __init__(self): "get_identity", hidden=True, )(self.wallet_get_id) - self.wallet_app.command("associate_hotkey")(self.wallet_associate_hotkey) + self.wallet_app.command("associate_hotkey", hidden=True)(self.wallet_associate_hotkey) # Subnets self.subnets_app.command("burn_cost", hidden=True)(self.subnets_burn_cost) From 244087be6044a0931173e354a5b15e170b71d320 Mon Sep 17 00:00:00 2001 From: bdhimes Date: Mon, 6 Oct 2025 21:19:54 +0200 Subject: [PATCH 3/4] Ruff --- bittensor_cli/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index a6d6bca55..a009c9f04 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -1106,7 +1106,9 @@ def __init__(self): "get_identity", hidden=True, )(self.wallet_get_id) - self.wallet_app.command("associate_hotkey", hidden=True)(self.wallet_associate_hotkey) + self.wallet_app.command("associate_hotkey", hidden=True)( + self.wallet_associate_hotkey + ) # Subnets self.subnets_app.command("burn_cost", hidden=True)(self.subnets_burn_cost) From e4174e2d7752736f569f848bd2e2dc9fd70585b9 Mon Sep 17 00:00:00 2001 From: bdhimes Date: Mon, 6 Oct 2025 22:46:19 +0200 Subject: [PATCH 4/4] Indent --- bittensor_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor_cli/cli.py b/bittensor_cli/cli.py index 4d2554203..718c2f7ff 100755 --- a/bittensor_cli/cli.py +++ b/bittensor_cli/cli.py @@ -618,7 +618,7 @@ def commands_callback(value: bool): if value: cli = CLIManager() console.print(cli.generate_command_tree()) - raise typer.Exit() + raise typer.Exit() def debug_callback(value: bool):