github.com/anchore/syft@v1.38.2/cmd/syft/internal/options/javascript.go (about) 1 package options 2 3 import "github.com/anchore/clio" 4 5 type javaScriptConfig struct { 6 SearchRemoteLicenses *bool `json:"search-remote-licenses" yaml:"search-remote-licenses" mapstructure:"search-remote-licenses"` 7 NpmBaseURL string `json:"npm-base-url" yaml:"npm-base-url" mapstructure:"npm-base-url"` 8 IncludeDevDependencies *bool `json:"include-dev-dependencies" yaml:"include-dev-dependencies" mapstructure:"include-dev-dependencies"` 9 } 10 11 var _ interface { 12 clio.FieldDescriber 13 } = (*javaScriptConfig)(nil) 14 15 func (o *javaScriptConfig) DescribeFields(descriptions clio.FieldDescriptionSet) { 16 descriptions.Add(&o.SearchRemoteLicenses, `enables Syft to use the network to fill in more detailed license information`) 17 descriptions.Add(&o.NpmBaseURL, `base NPM url to use`) 18 descriptions.Add(&o.IncludeDevDependencies, `include development-scoped dependencies`) 19 }