github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/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/jessevdk/go-flags" 8 "github.com/thetreep/go-swagger/generator" 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 }