Documentation
¶
Index ¶
- func Load(configName string, configDir string, version string) (*config.Config, error)
- func LoadRemote(ctx context.Context, url string, noCache bool, version string, ...) (*config.Config, error)
- func LoadWithContext(ctx context.Context, configName string, configDir string, version string, ...) (*config.Config, error)
- type LoadOption
- type PathInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoadOption ¶ added in v0.0.62
type LoadOption func(*loadOptions)
func WithNoCache ¶ added in v0.0.62
func WithNoCache() LoadOption
func WithProgress ¶ added in v0.0.62
func WithProgress(progress fetch.ProgressObserver) LoadOption
type PathInfo ¶
type PathInfo struct {
Filename string
AbsPath string
// ConfigDir is the directory holding the config file. Config assembly
// (mixin paths) resolves against it.
ConfigDir string
// RootDir is where commands run by default. Everything a command reads or
// runs resolves against it, unless the command sets work_dir.
RootDir string
// .lets abs path
DotLetsDir string
}
func FindConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.