feat(stack): add -ojson and --quiet machine-readable output to stack deploy#1796
Merged
Conversation
Agent-Logs-Url: https://github.com/mittwald/cli/sessions/30f15eeb-5504-4d58-a256-8355d012e3ef Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix stack deploy output to be machine readable
feat(stack): add Apr 29, 2026
-ojson and --quiet machine-readable output to stack deploy
martin-helmich
previously requested changes
Apr 29, 2026
Agent-Logs-Url: https://github.com/mittwald/cli/sessions/c113929c-6dfd-4852-b7a7-154836ffb23c Co-authored-by: martin-helmich <2538958+martin-helmich@users.noreply.github.com>
Items from review have been fixed, also did manual test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1788
mw stack deploywas not usable in automation contexts:--quietprinted a human-readable success message instead of a stable identifier, making it impossible to capture the stack ID in a script.-ojsonreturned an error (Nonexistent flag: -ojson) because the output flag was not wired up for this command.Changes
--quietnow outputs only the stack ID, so it can be captured withSTACK_ID=$(mw stack deploy ...).-ojsonnow returns the full stack definition as a JSON object via the existingJSONViewcomponent.run()override that wrote JSON directly to stdout; JSON rendering is now handled inrender()like every other command, keeping the implementation consistent with the rest of the CLI.-ojsonis active (in addition to--quiet) so no progress output leaks into the JSON stream.