Skip to content

Commit faedf2d

Browse files
yeldarbyclaude
andcommitted
fix(cli): hide stub commands from help (batch group, workflow build/run/deploy)
Don't advertise features that aren't implemented yet: - batch group: hidden entirely (all 4 commands are stubs) - workflow build/run/deploy: hidden individually (other workflow commands like list/get/create/update/fork are implemented) Hidden commands still work and give clear 'not yet implemented' messages. 374 tests pass, all linting clean. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3a87e15 commit faedf2d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

roboflow/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _walk(group: Any, prefix: str = "") -> None:
191191
# Register ALL commands in alphabetical order for clean --help output
192192
app.add_typer(annotation_app, name="annotation")
193193
app.add_typer(auth_app, name="auth")
194-
app.add_typer(batch_app, name="batch")
194+
app.add_typer(batch_app, name="batch", hidden=True) # All stubs — hidden until implemented
195195
app.add_typer(completion_app, name="completion")
196196
app.add_typer(deployment_app, name="deployment")
197197
app.add_typer(folder_app, name="folder")

roboflow/cli/handlers/workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def fork_workflow(
7878
_fork_workflow(args)
7979

8080

81-
@workflow_app.command("build")
81+
@workflow_app.command("build", hidden=True)
8282
def build_workflow(
8383
ctx: typer.Context,
8484
prompt: Annotated[str, typer.Argument(help="Natural language prompt describing the workflow")],
@@ -88,7 +88,7 @@ def build_workflow(
8888
_stub_build(args)
8989

9090

91-
@workflow_app.command("run")
91+
@workflow_app.command("run", hidden=True)
9292
def run_workflow(
9393
ctx: typer.Context,
9494
workflow_url: Annotated[str, typer.Argument(help="Workflow URL or ID")],
@@ -99,7 +99,7 @@ def run_workflow(
9999
_stub_run(args)
100100

101101

102-
@workflow_app.command("deploy")
102+
@workflow_app.command("deploy", hidden=True)
103103
def deploy_workflow(
104104
ctx: typer.Context,
105105
workflow_url: Annotated[str, typer.Argument(help="Workflow URL or ID")],

0 commit comments

Comments
 (0)