myitcv / x

Mono-repo for all myitcv.io/... Go code
MIT License
103 stars 20 forks source link

cmd/gg: support special "infile:" prefix flags on generators #127

Closed myitcv closed 5 years ago

myitcv commented 5 years ago

This is the input equivalent to "outdir:" flags for output.

Suggestion is that such a flag will provide a glob.

myitcv commented 5 years ago

Closing this as it doesn't seem to be required. If necessary, a generator should write a .go file (or a Go-based wrapper should), meaning the output participates in the normal dependency graph.

myitcv commented 5 years ago

This is required in situations where it's desirable to have a source file be a non-go file. e.g. writing a .proto file by hand.

myitcv commented 5 years ago

Solved in https://github.com/myitcv/x/commit/7563b07a289aebe30a9e2899fa1d55b334222057 and earlier