mirror of
https://github.com/anchore/syft.git
synced 2025-11-20 18:03:16 +01:00
* internalize majority of cmd package and migrate integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add internal api encoder Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * create internal representation of all formats Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * export capability to get default encoders Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * restore test fixtures Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
13 lines
438 B
Go
13 lines
438 B
Go
package options
|
|
|
|
import "github.com/anchore/fangs"
|
|
|
|
// Config holds a reference to the specific config file that was used to load application configuration
|
|
type Config struct {
|
|
ConfigFile string `yaml:"config" json:"config" mapstructure:"config"`
|
|
}
|
|
|
|
func (cfg *Config) DescribeFields(descriptions fangs.FieldDescriptionSet) {
|
|
descriptions.Add(&cfg.ConfigFile, "the configuration file that was used to load application configuration")
|
|
}
|