github.com/anchore/syft@v1.38.2/cmd/syft/internal/options/python.go (about) 1 package options 2 3 import "github.com/anchore/clio" 4 5 type pythonConfig struct { 6 SearchRemoteLicenses *bool `json:"search-remote-licenses" yaml:"search-remote-licenses" mapstructure:"search-remote-licenses"` 7 PypiBaseURL string `json:"pypi-base-url" yaml:"pypi-base-url" mapstructure:"pypi-base-url"` 8 GuessUnpinnedRequirements *bool `json:"guess-unpinned-requirements" yaml:"guess-unpinned-requirements" mapstructure:"guess-unpinned-requirements"` 9 } 10 11 var _ interface { 12 clio.FieldDescriber 13 } = (*pythonConfig)(nil) 14 15 func (o *pythonConfig) 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.PypiBaseURL, `base Pypi url to use`) 18 descriptions.Add(&o.GuessUnpinnedRequirements, `when running across entries in requirements.txt that do not specify a specific version 19 (e.g. "sqlalchemy >= 1.0.0, <= 2.0.0, != 3.0.0, <= 3.0.0"), attempt to guess what the version could 20 be based on the version requirements specified (e.g. "1.0.0"). When enabled the lowest expressible version 21 when given an arbitrary constraint will be used (even if that version may not be available/published).`) 22 }