Repository navigation
Hide resources by default in lstk status - #618
Draft
anisaoshafi wants to merge 3 commits into
Draft
anisaoshafi wants to merge 3 commits into
anisaoshafi wants to merge 3 commits into
Conversation
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.
Motivation
CloudControl in the emulator now reports IAM policies, including 1,500+ default ones, so
lstk statusprints thousands of lines of resources. The--no-resourcesflag that should have helped only worked with--json.Solution
lstk statusnow shows only the emulator info and health, and does not fetch resources at all.--resourcesflag lists deployed resources, in plain, interactive and--jsonoutput.--no-resourcesnow works in every output mode. It is hidden from help because it matches the default, but stays accepted since the VS Code extension passes it. It can't be combined with--resources.lstk status --resources.Breaking change: the default output, including the
--jsonenvelope, no longer contains resources. Hencesemver: major.Before / after
Same running AWS emulator, which reports 19,540 resources:
lstk statuslstk status --no-resourceslstk status --resourcesunknown flaglstk status --jsonlstk status --json --resourcesunknown flagBefore,
lstk status:After,
lstk status:Docs
lstk statusno longer lists deployed resources by default. It shows the emulator status only: endpoint, container, version, uptime and persistence.lstk status --resourceslists deployed resources (AWS emulator only). It works with--jsonand--endpoint-url.lstk status --jsonleaves outresourceSummaryandresourcesunless--resourcesis passed.--no-resourcesis still accepted and does the same as the default, but is no longer shown in help.Review
Human review advised: this changes default user-facing output and the
--jsoncontract, andsemver: majormakes the next release 2.0.0.Closes DEVX-1473