github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/cmd/swagger/commands/generate/sharedopts_nonwin.go (about) 1 //go:build !windows 2 // +build !windows 3 4 package generate 5 6 import ( 7 "github.com/go-swagger/go-swagger/generator" 8 "github.com/jessevdk/go-flags" 9 ) 10 11 type sharedOptions struct { 12 sharedOptionsCommon 13 TemplatePlugin flags.Filename `long:"template-plugin" short:"p" description:"the template plugin to use" group:"shared"` 14 } 15 16 func (s sharedOptions) apply(opts *generator.GenOpts) { 17 opts.TemplatePlugin = string(s.TemplatePlugin) 18 s.sharedOptionsCommon.apply(opts) 19 }