Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Cobra CLI framework #15

Merged
merged 2 commits into from
Apr 23, 2024
Merged

[Feature] Add Cobra CLI framework #15

merged 2 commits into from
Apr 23, 2024

Conversation

gwenwindflower
Copy link
Owner

This is a significant reorganization of the structure, though it does not add real new functionality or change the internal functionality. It just moves things around to fit with how Cobra likes things organized.

Importantly though, tbd is now properly a CLI (version command! --help!) and has the framework in place to expand that functionality. Particularly I'm laying the groundwork for supporting config that can be loaded to let you skip past most of the questions and just pick a schema, for probably common usage when you're always pointed at the same database and don't want to fill out the entire form over and over.

This PR doesn't functionally change anything about the internal workings of the app, but greatly alters the structure of the app. It now uses Cobra for a more proper CLI-like experience (version, help, etc work). This is laying the ground work for saving configs for easier reuse of previous runs.
Cutting over to Cobra required moving the formerely 'main' package functions into an 'internal' subpackage, this updates the CI checks to run tests in there as well.
@gwenwindflower gwenwindflower merged commit 201b742 into main Apr 23, 2024
1 check passed
@gwenwindflower gwenwindflower deleted the feat/add-cli branch April 23, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant