[Enhancement] 'outfile' flag to override backend's generated filename #14

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@knadh
knadh commented Jan 5, 2017

I found the ".gen.go" suffix convention not really working with some of my projects, so, added an optional command line flag that'll take an output file name. If left blank, it'll use the backend's file name generator.

Eg:
Default backend file name

gencode go -schema myschema // Generates myschema.gen.go

Override file name

gencode go -schema myschema -out models.go // Generates models.go
@knadh knadh changed the title from Added an optional 'outfile' flag to override backend's generated file… to [Enhancement] Added an optional 'outfile' flag to override backend's generated file… Jan 5, 2017
@knadh knadh changed the title from [Enhancement] Added an optional 'outfile' flag to override backend's generated file… to [Enhancement] 'outfile' flag to override backend's generated filename Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment