Documentation
¶
Index ¶
Constants ¶
View Source
const ( Project = "ux" DefaultName = ".config" DefaultType = "yaml" DefaultFile = DefaultName + "." + DefaultType )
Variables ¶
View Source
var ( DefaultDir = filepath.Join(xdg.ConfigHome, Project) DefaultPath = filepath.Join(DefaultDir, DefaultFile) PluginDir = filepath.Join(DefaultDir, "plugins") LocalBin = xdg.BinHome )
Functions ¶
func ConfigVar ¶
ConfigVar defines a string flag named config accepting a configuration file path. The argument p points to a string variable in which to store the value of the flag.
func VerboseVar ¶ added in v0.0.5
Types ¶
type GlobalOptions ¶
func (*GlobalOptions) ConfigVar ¶
func (opts *GlobalOptions) ConfigVar(flags *pflag.FlagSet)
func (*GlobalOptions) NewConfig ¶
func (opts *GlobalOptions) NewConfig() Config
Click to show internal directories.
Click to hide internal directories.