Skip to content

fix(cli): give logs and agent logs one teachable interface (40) - #362

Open
vsilent wants to merge 2 commits into
devfrom
fix/logs-interface-40
Open

vsilent wants to merge 2 commits into
devfrom
fix/logs-interface-40

Conversation

@vsilent

@vsilent vsilent commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

What

BUGS.md #40: stacker logs and stacker agent logs disagreed on their own surface — one took --service/--tail with no positional app, the other a positional <APP> and neither --lines nor --tail. The same intent had to be taught twice, and neither command accepted the other's spelling.

How

Both forms now work on both commands: stacker logs [APP] (sugar for --service, conflicting with it) and --lines as an alias of --tail; stacker agent logs [APP] --lines|--tail as aliases of --limit.

Tests

CLI regression tests cover every accepted form and the positional/--service conflict (5 tests green). Everything else untouched.

Verify

In BUGS.md #40 ("How to verify"): stacker logs n8n --lines 25 and stacker agent logs n8n --lines 25 must both parse; logs n8n --service other must be rejected.

robotizeit and others added 2 commits November 20, 2026 12:32
The two commands disagreed on their own surface: `stacker logs` took only
--service/--tail with no positional app, `stacker agent logs` took a
positional <APP> and rejected --lines/--tail, so the same intent had to be
taught twice and neither command accepted the other's spelling.

Both forms now work on both commands: `stacker logs` takes a positional app
(sugar for --service, conflicting with it) and --lines as an alias of --tail;
`stacker agent logs` accepts --lines and --tail as aliases of --limit.
Regression tests cover every accepted form and the positional/--service
conflict.

Co-Authored-By: Claude Opus 5 <noreply@claude.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants