google / turbinia

Automation and Scaling of Digital Forensics Tools
Apache License 2.0
735 stars 162 forks source link

Add version command and decouple evidence requests #1369

Closed jleaniz closed 10 months ago

jleaniz commented 11 months ago

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 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.

Applicable issues

Additional information

Checklist