github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/cmd/syft/cli/options/update_check.go (about)

     1  package options
     2  
     3  type UpdateCheck struct {
     4  	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
     5  }
     6  
     7  func DefaultUpdateCheck() UpdateCheck {
     8  	return UpdateCheck{
     9  		CheckForAppUpdate: true,
    10  	}
    11  }