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

feat: add support for a configuration file #32

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

adamconnelly
Copy link
Owner

@adamconnelly adamconnelly commented Jun 9, 2024

Added support for a kelpie.yaml file to specify the mocks to generate. The advantage of this is that we can avoid re-parsing the same package multiple times if we're generating more than one mock from it.

The existing go:generate method of generation is still supported - this will be up to personal preference.

I've also added some extra output to the generate command to make it easier to tell if the mocks have been generated correctly or not.

TODO:

  • Finish adding support for customizing the package name.

@adamconnelly adamconnelly force-pushed the adamc/kelpie-config branch from 7b4df52 to d6f2d48 Compare June 9, 2024 20:09
@adamconnelly adamconnelly marked this pull request as ready for review June 9, 2024 20:10
Added support for a kelpie.yaml file to specify the mocks to generate. The advantage of this is that we can avoid re-parsing the same package multiple times if we're generating more than one mock from it.

The existing `go:generate` method of generation is still supported - this will be up to personal preference.

I've also added some extra output to the generate command to make it easier to tell if the mocks have been generated correctly or not.
@adamconnelly adamconnelly force-pushed the adamc/kelpie-config branch from d6f2d48 to c1bacd3 Compare June 9, 2024 20:12
@adamconnelly adamconnelly merged commit c1bacd3 into main Jun 9, 2024
3 checks passed
@adamconnelly adamconnelly deleted the adamc/kelpie-config branch June 9, 2024 20:15
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