2021-09-15 01:18:39 +00:00
|
|
|
package features
|
2020-10-13 06:38:41 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
}
|
2021-09-10 21:47:25 +00:00
|
|
|
|
|
|
|
deprecatedEnableActiveBalanceCache = &cli.BoolFlag{
|
|
|
|
Name: "enable-active-balance-cache",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2021-09-13 17:05:09 +00:00
|
|
|
|
2021-09-13 20:10:45 +00:00
|
|
|
deprecatedCorrectlyPruneCanonicalAtts = &cli.BoolFlag{
|
|
|
|
Name: "correctly-prune-canonical-atts",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
|
|
|
|
2021-09-13 17:05:09 +00:00
|
|
|
deprecatedCorrectlyInsertOrphanedAtts = &cli.BoolFlag{
|
|
|
|
Name: "correctly-insert-orphaned-atts",
|
|
|
|
Usage: deprecatedUsage,
|
|
|
|
Hidden: true,
|
|
|
|
}
|
2020-10-13 06:38:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var deprecatedFlags = []cli.Flag{
|
|
|
|
exampleDeprecatedFeatureFlag,
|
2021-09-10 21:47:25 +00:00
|
|
|
deprecatedEnableActiveBalanceCache,
|
2021-09-13 20:10:45 +00:00
|
|
|
deprecatedCorrectlyPruneCanonicalAtts,
|
2021-09-13 17:05:09 +00:00
|
|
|
deprecatedCorrectlyInsertOrphanedAtts,
|
2020-10-13 06:38:41 +00:00
|
|
|
}
|