configflags

package
v2.0.0-beta.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfFlag = redant.Option{
	Flag:        "config",
	Shorthand:   "c",
	Description: "config path",
	Default:     config.GetConfigPath(),
	Value:       redant.StringOf(lo.ToPtr(config.GetConfigPath())),
	Category:    "system",
	Envs:        []string{env.Key("config_path")},
	Action: func(val pflag.Value) error {
		config.SetConfigPath(val.String())
		env.Set("config_path", val.String())
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL