mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +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>
18 lines
548 B
Go
18 lines
548 B
Go
package options
|
|
|
|
import "github.com/anchore/fangs"
|
|
|
|
type UpdateCheck struct {
|
|
CheckForAppUpdate bool `yaml:"check-for-app-update" json:"check-for-app-update" mapstructure:"check-for-app-update"` // whether to check for an application update on start up or not
|
|
}
|
|
|
|
func DefaultUpdateCheck() UpdateCheck {
|
|
return UpdateCheck{
|
|
CheckForAppUpdate: true,
|
|
}
|
|
}
|
|
|
|
func (cfg *UpdateCheck) DescribeFields(descriptions fangs.FieldDescriptionSet) {
|
|
descriptions.Add(&cfg.CheckForAppUpdate, "whether to check for an application update on start up or not")
|
|
}
|