minT(oolkit): Mint awesome, secure and production ready containers just the way you need them! Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Initial commit removed the the data channel from the image command's handler.go and added a Data method to execution context.
This approach can likely be deprecated now in favor of the approach taken for passing data to the debug tui via an internal channel on execution context
Move the debug tui to be a sibling file to handler.go
Add tui hotkeys to support interaction with the debug tui
Add an internal channel on execution context to feed data from .Info to a provided dataChannel via an internalDataCh [note - channel naming should be consistent]
When the OutputFormat for execution context is specified as "subscription" - then the channels are used to pipe data. This is only implemented for .Info at the moment for this Proof of Concept.
Why
Demonstrate PoC of using an internal channel inside of execution context
Begin to support a tui mode for debug
Questions
The approach to support debug --tui effectively drops all other provided flags on the floor. This could be a poor UX.
Will the pattern be to encourage people to only use the --tui flag as a standalone flag, then perform interactions inside of the interface?
Or will debug --tui --runtime=k8s --target=my-nginx be a desired entrypoint to support? DevX wise - for ease of using the last invoked command without writing out things by hand in a TUI, supporting flags alongside --tui feels relevant.
What
debug
tui via an internal channel on execution context.Info
to a provideddataChannel
via aninternalDataCh
[note - channel naming should be consistent]OutputFormat
for execution context is specified as"subscription"
- then the channels are used to pipe data. This is only implemented for.Info
at the moment for this Proof of Concept.Why
Questions
debug --tui
effectively drops all other provided flags on the floor. This could be a poor UX.--tui
flag as a standalone flag, then perform interactions inside of the interface?debug --tui --runtime=k8s --target=my-nginx
be a desired entrypoint to support? DevX wise - for ease of using the last invoked command without writing out things by hand in a TUI, supporting flags alongside --tui feels relevant.How Tested
mint debug --tui
mint images --tui
mint tui
->d