feat(stack): add -ojson and --quiet machine-readable output to stack deploy#1796
Draft
feat(stack): add -ojson and --quiet machine-readable output to stack deploy#1796
-ojson and --quiet machine-readable output to stack deploy#1796Conversation
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
requested changes
Apr 29, 2026
| }; | ||
| } | ||
|
|
||
| public async run(): Promise<void> { |
Member
There was a problem hiding this comment.
@copilot Solve this without overriding the run method. This should be solvable within the render method itself.
Contributor
Author
There was a problem hiding this comment.
Done in 3a4e265. Removed the run() override and use the JSONView component directly in render() instead.
| } = this.flags; | ||
| const r = makeProcessRenderer(this.flags, "Deploying container stack"); | ||
| const r = makeProcessRenderer( | ||
| { quiet: this.flags.quiet || this.flags.output === "json", json: undefined }, |
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>
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.
outputflag (-o txt|json) tostack deploycommandstackIdandstackDefinition(API response) inDeployResultexec()to use silent process renderer when-ojson, and returnstackId/stackDefinitionJSONViewcomponent inrender()for JSON output (norun()override needed)render()to return stack ID when--quietis set