nitrictech / nitric

Nitric is a multi-language framework for cloud applications with infrastructure from code.
https://nitric.io
Apache License 2.0
1.2k stars 51 forks source link

cli: improve stack update (up) command DX enhancement #507

Closed jyecusch closed 10 months ago

jyecusch commented 1 year ago

Improvements to the nitric stack up command to provide succint details about the resources being deployed and the status of each deployment.

tjholm commented 1 year ago

Still WIP, got a version working with viewports, but there is some weird behaviour with updates and diffs causing flashing as the FPS for updates on the client end is too high and occasionally produces empty diffs on updates causing flashing on the CLI side.

Some options are:

The flashing is really being caused by the difference between spinner/model updates as they occur as two separate events.

The spinners always update lines so that will render the full table, but the updates may only change one line at a time producing a small diff which renders stable but then the next spinner tick renders the full table again immediately. (this could probably be somewhat stablized by ignoring diagnostic events for now)

tjholm commented 1 year ago

Next steps would probably be to remove tea.NewProgram and write our own lifecycle wrapper for the output instead, allowing us to bypass dedupe and better control rate of output.