This added unit tests for cobra cmds. As a side effect, these cmds are refactored to be created and initialized from function calls, replacing top-level variable and init function.
Other changes:
Refactored formatter tests to reflect its use cases (i.e. behaviors).
Related to #7
Type of change
Please select the type of change(s) this PR introduces:
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
This added unit tests for cobra cmds. As a side effect, these cmds are refactored to be created and initialized from function calls, replacing top-level variable and
init
function.Other changes:
Related to #7
Type of change
Please select the type of change(s) this PR introduces:
Checklist
Additional Information
N/A