package
Version:
v0.0.0-...-7908a67
Opens a new window with list of versions in this module.
Published: Jan 8, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package config implements functions pertaining to configuration management.
Editor attempts to locate an editor that's appropriate for the environment.
Init initializes a config file
Pager attempts to locate a pager that's appropriate for the environment.
Path returns the config file path
Paths returns config file paths that are appropriate for the operating
system
type Config struct {
Colorize bool `yaml:"colorize"`
Editor string `yaml:"editor"`
Cheatpaths []cp.Cheatpath `yaml:"cheatpaths"`
Style string `yaml:"style"`
Formatter string `yaml:"formatter"`
Path string
}
Config encapsulates configuration parameters
New returns a new Config struct
Color indicates whether colorization should be applied to the output
Validate returns an error if the config is invalid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.