prysm-pulse/shared/featureconfig/deprecated_flags.go
Victor Farazdagi 372dc47b64
Deprecate enableSyncBacktracking flag (#8371)
* Deprecate enableSyncBacktracking flag

* keep deprecated flags
2021-02-01 11:18:24 +00:00

32 lines
784 B
Go

package featureconfig
import "github.com/urfave/cli/v2"
// Deprecated flags list.
const deprecatedUsage = "DEPRECATED. DO NOT USE."
var (
// To deprecate a feature flag, first copy the example below, then insert deprecated flag in `deprecatedFlags`.
exampleDeprecatedFeatureFlag = &cli.StringFlag{
Name: "name",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedEnableSyncBacktracking = &cli.StringFlag{
Name: "enable-sync-backtracking",
Usage: deprecatedUsage,
Hidden: true,
}
deprecatedDisableSyncBacktracking = &cli.StringFlag{
Name: "disable-sync-backtracking",
Usage: deprecatedUsage,
Hidden: true,
}
)
var deprecatedFlags = []cli.Flag{
exampleDeprecatedFeatureFlag,
deprecatedEnableSyncBacktracking,
deprecatedDisableSyncBacktracking,
}