Repository navigation
Add lstk inspect to turn App Inspector on or off - #545
Conversation
7f340a5 to
0c624dc
Compare
0c624dc to
841bd93
Compare
eb0d22a to
47fb1d9
Compare
|
Hi @anisaoshafi, this is the first time I've seen this new feature idea, so I have a couple of questions:
|
@peter-smith-phd you can check some conversations in here. Now I see what you mean with --persist having a different meaning with it being a localstack feature in lstk start, while here in inspector is more like saving a setting, I think I went to far with it. My idea was to sort of have a way to save this setting, but I don't think we need it right now. Will consider removing it. |
|
Thanks for sharing the previous discussion - I had missed that. I think I'm convinced that However, BTW, does |
47fb1d9 to
c2f1bb8
Compare
Thanks for challenging this, Peter. Agree, it doesn't do that much, we can as well remove the status subcommand. App Inspector can already be enabled via setting it in the environment variable in the config profile, and and lstk start picks it up, but this command makes this more dynamic.
Yes, this is the output. Also added one tests to reflect this contract: I'll merge this for now, but happy to make further adjustments before the next lstk release 🙏🏼 |
|
So what exactly is being merged? Is the PR description still accurate?
|
I'll remove both |
Motivation
Today, App Inspector is turned on with a button in the Web App. This PR adds a CLI command for it, so it can be turned on from the terminal, in CI, or in a setup script.
Solution
lstk inspect enable | disable. AWS emulator only.--jsonand--endpoint-url.Docs
New command
lstk inspect(AWS emulator only):lstk inspect enableturns App Inspector on.lstk inspect disableturns it off.Both need a running emulator, and the change lasts until the emulator restarts.
Both commands support
--json. The output shape and error codes are indocs/structured-output.md.Review
Human review advised: a new user-facing command.
Closes DEVX-1151