feat: improve install
error when app doesnt exist
#1140
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.
Description
When trying to install an app that doesnt exist the error message would advise the user that the app doesnt exist and that they should run
install --help
to see what is available.However, there may be situations where the user is using the wrong verb because they are trying to get a tool, rather than an app. This change introduces a check when an app not found error is encountered to see whether a tool with the user provided name exists and advises them accordingly.
also adds associated test.
Motivation and Context
design/approved
by a maintainer (required)discussed on the community call on 20/11
How Has This Been Tested?
Functional
Tried the helm example with isnt an app but will resolve to a tool. Then tried
burt
which is neither app nor tool.Types of changes
Documentation
./arkade get --format markdown
./arkade install --help
Checklist:
git commit -s