Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Commit 29bad2d

Browse files
authored
feat: make TUI default when no subcommand provided (#46)
Running `agentspaces` with no arguments now launches the TUI instead of showing help text. Help is still available via `agentspaces --help`. Closes agentspaces-jpu
1 parent b57611e commit 29bad2d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/agentspaces/cli/app.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
app = typer.Typer(
1313
name="agentspaces",
1414
help="Workspace orchestration tool for AI coding agents.",
15-
no_args_is_help=True,
15+
no_args_is_help=False,
1616
context_settings={"help_option_names": ["-h", "--help"]},
1717
)
1818

@@ -30,8 +30,9 @@ def version_callback(value: bool) -> None:
3030
raise typer.Exit()
3131

3232

33-
@app.callback()
33+
@app.callback(invoke_without_command=True)
3434
def main(
35+
ctx: typer.Context,
3536
version: bool = typer.Option( # noqa: ARG001 - handled by callback
3637
None,
3738
"--version",
@@ -53,3 +54,7 @@ def main(
5354
"""
5455
# Configure logging (debug only when verbose)
5556
configure_logging(debug=verbose)
57+
58+
# Launch TUI if no subcommand provided
59+
if ctx.invoked_subcommand is None:
60+
tui.main(ctx)

0 commit comments

Comments
 (0)