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

🏗 build(cli): extract args before running build cmd #196

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

tyler-dane
Copy link
Contributor

Closes #195

@tyler-dane tyler-dane self-assigned this Dec 20, 2024
@tyler-dane tyler-dane changed the title 🐛 fix: extract cli args before running cmd 🐛 fix: extract cli args before running build cmd Dec 28, 2024
@tyler-dane tyler-dane force-pushed the feat/195-cli branch 2 times, most recently from 60c043b to 2bda7f0 Compare December 30, 2024 11:53
@tyler-dane tyler-dane changed the title 🐛 fix: extract cli args before running build cmd 🐛 build(cli): extract args before running build cmd Dec 31, 2024
@tyler-dane tyler-dane changed the title 🐛 build(cli): extract args before running build cmd 🏗 build(cli): extract args before running build cmd Dec 31, 2024
@tyler-dane tyler-dane force-pushed the feat/195-cli branch 2 times, most recently from 1259eb7 to 7b18fe2 Compare January 5, 2025 13:12
this improves readability, because the class has access to the 'options', which means we don't have to keep passing that arg to the util functions
this makes the division of responsibilities more clear: the Validator parses cli args and validates their inputs against our types. The CLI is then free to accept the parsed args and simply trigger the provided commands
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.

Cli's build command always prompts for package
1 participant