2020-08-30 03:30:07 +00:00
|
|
|
package cmds
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/rancher/k3s/pkg/version"
|
|
|
|
"github.com/urfave/cli"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// ConfigFlag is here to show to the user, but the actually processing is done by configfileargs before
|
|
|
|
// call urfave
|
|
|
|
ConfigFlag = cli.StringFlag{
|
|
|
|
Name: "config,c",
|
|
|
|
Usage: "(config) Load configuration from `FILE`",
|
2020-09-01 17:43:28 +00:00
|
|
|
EnvVar: version.ProgramUpper + "_CONFIG_FILE",
|
2020-08-30 03:30:07 +00:00
|
|
|
Value: "/etc/rancher/" + version.Program + "/config.yaml",
|
|
|
|
}
|
|
|
|
)
|