Add versions table option to ckan show command #3414
Merged
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.
Motivation
After KSP-CKAN/CKAN-meta#2389 updated the compatibility of 17 old modules and its parent PR used this illustration:
... I said this and got a 👍 :
Problems
There are also lots and lots of things I don't like about the current
ckan show
command.Changes
Now you can use
ckan show --with-versions <identifier>
to see the versions and compatible game versions, and all of the above annoyances are addressed. This will be particularly appreciated by all of our users in 1975 who use their PDP-11 computers by typing commands and inspecting the output from their dot matrix printers, or even those with brand new state of the art CRT displays:Next steps
After this is merged, we can add
--with-versions
here for NetKAN validation:https://github.com/KSP-CKAN/xKAN-meta_testing/blob/00c0a0b4c3eb79c7dc740bb1daae9cd3f2f23074/ckan_meta_tester/ckan_install_template.txt#L4
This will produce duplicated output for CKAN-meta when a PR modified multiple historical versions of the same mod, but we can worry about that problem later if it bothers us.