CA Admin and Commands: Use different colors on library install/update button/version #2970
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.
If installation, or update, of a library fails in CA Admin, the user is now shown an alert with the error(s), previously it silently failed only logging to the console. The command for installing libraries has also been updated to display more details.
In CA Admin the update button and the install button now uses colours, these colours are also used in the commands:
The command
h5p:library-list
required one of three argumentsavailable
,installed
oroutdated
. If running without any argument it would just show an error, not telling what the available arguments where. The command is now split into three sub-commands and separate classes. This makes maintenance easier since the arguments had both common and unique options.h5p:library-list available
h5p:library-list:available
h5p:library-list installed
h5p:library-list:installed
h5p:library-list outdated
h5p:library-list:outdated
The commands
h5p:library-install
,h5p:library-list:available
andh5p:library-list:outdated
will not list libraries that require newer version of H5P Code unless option--ignore-core-version
is given.