mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-17 10:00:17 -05:00
20 lines
310 B
Go
20 lines
310 B
Go
package task
|
|
|
|
type taskRunConfig struct {
|
|
runUpdateCheck bool
|
|
}
|
|
|
|
func newRunConfig() *taskRunConfig {
|
|
return &taskRunConfig{
|
|
runUpdateCheck: true,
|
|
}
|
|
}
|
|
|
|
type TaskRunOption func(o *taskRunConfig)
|
|
|
|
func WithUpdateCheck(run bool) TaskRunOption {
|
|
return func(o *taskRunConfig) {
|
|
o.runUpdateCheck = run
|
|
}
|
|
}
|