mirror of
https://github.com/k3s-io/k3s.git
synced 2026-02-03 20:39:49 -05:00
* Bump rootlesskit tov 1.1.1, last of the v1 line * Migrate to urfavecli v2 * Disable StringSlice seperattion Signed-off-by: Derek Nola <derek.nola@suse.com>
18 lines
478 B
Go
18 lines
478 B
Go
package cmds
|
|
|
|
import (
|
|
"github.com/k3s-io/k3s/pkg/version"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
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",
|
|
Aliases: []string{"c"},
|
|
Usage: "(config) Load configuration from `FILE`",
|
|
EnvVars: []string{version.ProgramUpper + "_CONFIG_FILE"},
|
|
Value: "/etc/rancher/" + version.Program + "/config.yaml",
|
|
}
|
|
)
|