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

Allow direct go generate usage (no CLI) #11

Open
bojanz opened this issue Jun 26, 2020 · 0 comments
Open

Allow direct go generate usage (no CLI) #11

bojanz opened this issue Jun 26, 2020 · 0 comments

Comments

@bojanz
Copy link

bojanz commented Jun 26, 2020

Right now I need to modify my Makefile to install broccoli in $PATH to be able to use it from go generate. It would be simpler if I could instead invoke my own gen.go which just calls the broccoli API, like vfsgen allows. From what I can see, main.go is already a very thin wrapper, all that's needed is to export Generator options and parsePackage() / generate() functions. Is that something you'd be open to? If yes, I could send in a PR.

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

No branches or pull requests

1 participant