This PR adds a new "version" command to display the tool's version. It also implements changes to decouple API requests that retrieve evidence types to build the list of "submit" subcommands. This means that those API requests are only sent when running "submit" or one of its subcommands.
The create_request method was moved from the commands module to the click_helper module since it's not a command.
The evidence mapping API requests and CommandFactory methods that create dynamic click Commands are now invoked only when calling the submit command. Click can then "chain" the subcommands as they are generated during runtime.
Description of the change
This PR adds a new "version" command to display the tool's version. It also implements changes to decouple API requests that retrieve evidence types to build the list of "submit" subcommands. This means that those API requests are only sent when running "submit" or one of its subcommands.
The
create_request
method was moved from thecommands
module to theclick_helper
module since it's not a command.The evidence mapping API requests and
CommandFactory
methods that create dynamic click Commands are now invoked only when calling thesubmit
command. Click can then "chain" the subcommands as they are generated during runtime.Applicable issues
Additional information
Checklist