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.
This PR updates the help command by adding a custom Help object for FrodoStubCommands. Additionally, it refactors all sub-commands to run in the same process instead of running the sub-commands as executables in separate processes. Thus, everything should be functionally the same besides this change to how the commands are run.
Due to the changes to how the commands are created, there can no longer be two descriptions for each sub-command, but just one description. This isn't a huge deal since a lot of the descriptions were the same or very similar anyways, but it did mean that we had to update the client_cli snapshots where the descriptions differed. Similarly, due to the changes in the help command, the client_cli snapshots had to be updated.
No changes needed to be made to e2e tests or snapshots however. They were originally failing after the changes due to the mock naming scheme no longer working as it was before, likely due to the fact that it is now using only one process to run all sub-commands, resulting in the mocks generating differently now. We made a temporary fix in frodo-lib to how mocks are named to make it so the tests work with the current mocks, which fix is in another PR on the frodo-lib project, although the mock naming is something we will want to improve eventually.