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.
I found this
bin
utility useful and wanted to use it insideDockefile
s, which meant that at no point can we drop to a TTY, the simplest way to circumvent user feedback is to allow explicit selection. This PR suggests a minimal addition required to allow for explicit command line selection as well as a use case in the.devcontainer
added to the project. It is already being used, the PR is just in case the project maintainer find the added behavior desirable.Note: The README was not updated, as it currently doesn't explain in detail all the options and switches, this oversight can be remedied on request.
There are 2 minor updates:
Previously, the installation/download directory is derived from the
PATH
, when it's unable to do so, thebin
utilitydemands user feedback. In some cases it's useful to be able to shortcut this process and directly provide it with the installation directory using
the
BIN_EXE_DIR
Note: while the original
bin
utility allows for installation at a specific directoryThe behavior differs. Without
BIN_EXE_DIR
when the initial config is missing, the user will be requested to provide the installation directory.In some cases the release may contain multiple files and user intervention is required to choose which one to install. The select option was introduced to allow
the user to specify the exact file to install even when it's inside an archive (tar, xz, etc).
While it is possible to select partially, IMHO it defeats my original purpose of avoiding any TTY interaction, but why not?!