diff options
| -rw-r--r-- | generate.go | 17 | ||||
| -rw-r--r-- | init.go | 11 |
2 files changed, 17 insertions, 11 deletions
diff --git a/generate.go b/generate.go new file mode 100644 index 0000000..6158d14 --- /dev/null +++ b/generate.go @@ -0,0 +1,17 @@ +// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 + +package forgepb + +// NOTE: it would be helpful if go.mod doesn't exist, that go generate +// would automatically run go mod init and go mod tidy +// and allow directives to 'go get go.wit.com/apps/autogenpb' +// then this process could be fully automated +// +//go:generate make go-generate +//go:generate go install -v go.wit.com/apps/autogenpb +//go:generate autogenpb --proto forgeConfig.proto +//go:generate autogenpb --proto patch.proto +//go:generate autogenpb --proto set.proto +// # go:generate go get golang.org/x/tools # repo seems broken at this time (?) +// # go:generate go install -v golang.org/x/tools/cmd/goimports +//go:generate bash -c "goimports -w *.go" @@ -1,15 +1,4 @@ // Copyright 2025 WIT.COM Inc Licensed GPL 3.0 -// -// NOTE: it would be helpful if go.mod doesn't exist, that go generate -// would automatically run go mod init and go mod tidy -// and allow directives to 'go get go.wit.com/apps/autogenpb' -// then this process could be fully automated -// -//go:generate make go-generate -//go:generate go install -v go.wit.com/apps/autogenpb -//go:generate autogenpb --proto forgeConfig.proto -//go:generate autogenpb --proto patch.proto -//go:generate autogenpb --proto set.proto package forgepb |
