Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/utils: Clarify the default and fallback values
The terms 'default' and 'fallback' are used to mean very specific things in this context. The 'default' values are those that are used when the 'create', 'enter' and 'run' commands were used without any option. These values are picked to match the host operating system. However, if there's no supported Toolbox image matching the host operating system, and no options were provided to the 'create', 'enter' and 'run' commands, then the 'fallback' values are used as a last resort. Consistently using this terminology leads to a clear mental model and makes the code easier to read. This rough arrangement of the code was already being used for 'release', and has now been been extended to 'container name prefix' and 'distro'. The suffix for the 'fallback' values was simplified to 'Fallback', instead of 'DefaultFallback'. containers#937 containers#1080
- Loading branch information