github.com/jacobsoderblom/buffalo@v0.11.0/buffalo/cmd/build/options.go (about) 1 package build 2 3 import ( 4 "encoding/json" 5 6 "github.com/gobuffalo/buffalo/meta" 7 ) 8 9 // Options for a build 10 type Options struct { 11 meta.App 12 ExtractAssets bool `json:"extract_assets"` 13 WithAssets bool `json:"with_assets"` 14 LDFlags string `json:"ld_flags"` 15 Tags []string `json:"tags"` 16 Static bool `json:"static"` 17 Debug bool `json:"debug"` 18 Compress bool `json:"compress"` 19 Environment string `json:"environment"` 20 SkipTemplateValidation bool `json:"skip_template_validation"` 21 } 22 23 func (o Options) String() string { 24 b, _ := json.Marshal(o) 25 return string(b) 26 }