mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-10 15:07:29 +00:00
21 lines
478 B
Go
21 lines
478 B
Go
package schedule
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
|
|
"github.com/vmware-tanzu/velero/pkg/cmd/util/flag"
|
|
)
|
|
|
|
type SkipOptions struct {
|
|
SkipImmediately flag.OptionalBool
|
|
}
|
|
|
|
func NewSkipOptions() *SkipOptions {
|
|
return &SkipOptions{}
|
|
}
|
|
|
|
func (o *SkipOptions) BindFlags(flags *pflag.FlagSet) {
|
|
f := flags.VarPF(&o.SkipImmediately, "skip-immediately", "", "Skip the next scheduled backup immediately")
|
|
f.NoOptDefVal = "" // default to nil so server options can take precedence
|
|
}
|