feat(just): add option to use toolbox instead of distrobox #218
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.
Since
toolbox
anddistrobox
are nowhere near feature parity (and not always compatible with each other), it made more sense to provide the toolbox option as a separate recipe.Recipes
This PR implements the recipes
toolbox-new
and a very limited version ofdistrobox-assemble
in the form oftoolbox-assemble
for ujust.There are no plans to expand upon this, the assemble feature is provided as a nice to have for defining multiple toolbox containers and assembling them with 1 command.
Internals
For internal ujust functions this implements
Toolbox
,ToolboxAssemble
andToolboxAssembleList
that will work similar to the internal ujust functions for distrobox.Why make toolbox internal functions?
The easiest maintainable way to generate a list of images is through a similar
ini
manifest file like we do for distrobox, we already had the logic for it, so why not re-use it and avoid having to update the script functions/just file whenever the images supplied gets too old.NOTE: Dev container does not have gum or fzf installed, the bash fallback is perfect for demonstration images like this
This should suffice as an implementation for #186