config

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoticeColor = "\033[1;36m%s\033[0m"
)

Variables

This section is empty.

Functions

func Load

func Load(configName string, configDir string, version string) (*config.Config, error)

Types

type PathInfo added in v0.0.23

type PathInfo struct {
	Filename string
	AbsPath  string
	WorkDir  string
	// .lets
	DotLetsDir string
}

func FindConfig added in v0.0.23

func FindConfig(configName string, configDir string) (PathInfo, error)

FindConfig will try to find best match for config file. Rules are: - if specified configName - try to load only that file - if specified configDir - try to look for a config only in that dir - don't do recursion - if not specified any of params above - try to find config recursively.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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