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

Refactor loadAndValidateOptions p3: Add config validation #1307

Merged
merged 13 commits into from
Dec 20, 2024

Conversation

kemmerle
Copy link
Contributor

@kemmerle kemmerle commented Dec 17, 2024

Description and Context

Relies on: HubSpot/hubspot-local-dev-lib#222

In this PR, I've added validation when loading the configuration file. This involves creating a NO_VALIDATE_LIST for certain commands, like hs init, that will fail upon validation. If there's a more elegant solution to the problem, I'm all ears!

Screenshots

TODO

  • Address feedback

Who to Notify

@brandenrodgers @camden11 @joe-yeager

bin/cli.js Outdated Show resolved Hide resolved
bin/cli.js Outdated Show resolved Hide resolved
bin/cli.js Outdated Show resolved Hide resolved
@kemmerle kemmerle marked this pull request as draft December 17, 2024 18:13
@kemmerle kemmerle marked this pull request as ready for review December 17, 2024 21:06
bin/cli.js Outdated Show resolved Hide resolved
Copy link
Contributor

@joe-yeager joe-yeager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few nits

bin/cli.js Outdated Show resolved Hide resolved
bin/cli.js Outdated Show resolved Hide resolved
bin/cli.js Outdated Show resolved Hide resolved
Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit to prevent unnecessary IF nesting, but otherwise lgtm!

Copy link
Contributor

@brandenrodgers brandenrodgers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@kemmerle kemmerle merged commit 953e514 into next Dec 20, 2024
1 check passed
@kemmerle kemmerle deleted the refactor/loadAndValidateOptions3 branch December 20, 2024 19:32
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.

3 participants