INNER CODE UNIT · Go

globalFlags

openrundev/openrun · cmd/openrun/main.go:52

func globalFlags(globalConfig *types.GlobalConfig, clientConfig *types.ClientConfig) ([]cli.Flag, error) {
	return []cli.Flag{
		&cli.StringFlag{
			Name:        configFileFlagName,
			Aliases:     []string{"c"},
			Usage:       "TOML configuration file",
			Destination: &globalConfig.ConfigFile,
			EnvVars:     []string{"CL_CONFIG_FILE"},
		},
		&cli.StringFlag{
			Name:    serverUriFlagName,
			Usage:   "The server uri to connect to (unix socket path or https://host[:port]). Takes precedence over server_uri in the config file",
			EnvVars: []string{"OPENRUN_SERVER_URI"},
		},
		&cli.StringFlag{
			Name:        "as",
			Usage:       "Run the command as this user id (like builtin:user1) with RBAC enforcement. Requires RBAC to be enabled; supported over the unix domain socket only",
			Destination: &clientConfig.Client.AsUser,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…