-
Notifications
You must be signed in to change notification settings - Fork 29
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
Go generate steps #37
Comments
Currently it requires an additional script. Something like: touch go.sh
chmod +x go.sh Content of #!/bin/sh
go generate &&
go $@ Usage: gow -g=./go.sh -v -c run . The current implementation of |
Ok, interesting solution.. |
Today we'd be adding support for What's unclear is how to pass arguments to |
Hm... so I would argue that go generate is a special case here. Additionally it allows you to specify a sequence of steps in your go files by its own nature, so the only thing we need to add is a path
if you want to add other subcommands for a start you can even include them via the generate option by calling go from within So thats my take on it :-) |
Please clarify the intended behavior of |
If we really wanted multi-command support, the CLI interface could look like this: gow -c -v -- generate -- run . Argument terminator could be configurable: gow -c -v -t=••• ••• generate ••• run . A slightly more general form would take full command + argument lists without implicitly prepending gow -c -v -g= -- go generate -- go run . |
Hey, this is a really sweet tool
Can I somehow make sure go generate steps are run on reload as well ?
If not I might be interested in contributing something like it :-)
Greetings
The text was updated successfully, but these errors were encountered: