2020-08-30 03:30:07 +00:00
|
|
|
package cmds
|
|
|
|
|
|
|
|
import (
|
2022-03-02 23:47:27 +00:00
|
|
|
"github.com/k3s-io/k3s/pkg/version"
|
2020-08-30 03:30:07 +00:00
|
|
|
"github.com/urfave/cli"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// ConfigFlag is here to show to the user, but the actually processing is done by configfileargs before
|
|
|
|
// call urfave
|
2023-01-31 20:57:48 +00:00
|
|
|
ConfigFlag = &cli.StringFlag{
|
2020-08-30 03:30:07 +00:00
|
|
|
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",
|
|
|
|
}
|
|
|
|
)
|