Documentation
¶
Index ¶
Constants ¶
View Source
const (
NoticeColor = "\033[1;36m%s\033[0m"
)
Variables ¶
View Source
var ( // COMMANDS is a top-level directive. Includes all commands to run COMMANDS = "commands" SHELL = "shell" ENV = "env" EvalEnv = "eval_env" MIXINS = "mixins" VERSION = "version" )
Functions ¶
func GetDefaultConfigPath ¶
func GetDefaultConfigPath() string
Types ¶
type Config ¶
type Config struct {
// absolute path to work dir - where config is placed
WorkDir string
FilePath string
Commands map[string]command.Command
Shell string
Env map[string]string
Version string
// absolute path to .lets
DotLetsDir string
// contains filtered or unexported fields
}
Config is a struct for loaded config file
func (*Config) UnmarshalYAML ¶
UnmarshalYAML unmarshals a config
type ParseError ¶
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type PathInfo ¶ added in v0.0.23
func FindConfig ¶ added in v0.0.23
FindConfig will try to find best match for config file. Rules are: - if specified LETS_CONFIG - try to load only that file - if specified LETS_CONFIG_DIR - try to look for a config only in that dir - don't do recursion - if not specified any of env vars above - try to find config recursively
Click to show internal directories.
Click to hide internal directories.