diff --git a/ctl/server.go b/ctl/server.go index 98472ea95..35db14f72 100644 --- a/ctl/server.go +++ b/ctl/server.go @@ -113,4 +113,7 @@ func BuildServerFlags(cmd *cobra.Command, srv *server.Command) { // Disk and Memory usage cache for ui/usage endpoint flags.Float64Var(&srv.Config.UsageDutyCycle, "usage-duty-cycle", srv.Config.UsageDutyCycle, "Sets the percentage of time that is spent recalculating the disk and memory usage cache. 100.0 for always-running, must be > 0.") + + // Future flags. + flags.BoolVar(&srv.Config.Future.Rename, "future.rename", false, "present application name as FeatureBase") } diff --git a/server/config.go b/server/config.go index e744b86e2..f278d790e 100644 --- a/server/config.go +++ b/server/config.go @@ -227,6 +227,14 @@ type Config struct { // The percentage of time spent recalculating the disk and memory usage cache. UsageDutyCycle float64 `toml:"usage-duty-cycle"` + + // Future flags are used to represent features or functionality which is not + // yet the default behavior, but will be in a future release. + Future struct { + // Rename, if true, will outwardly present the name of the application + // as FeatureBase instead of Pilosa. + Rename bool `toml:"rename"` + } `toml:"future"` } // MustValidate checks that all ports in a Config are unique and not zero. @@ -365,6 +373,9 @@ func NewConfig() *Config { // Disk and Memory Usage c.UsageDutyCycle = 20.0 + // Future flags. + c.Future.Rename = false + return c }