Documentation
¶
Overview ¶
Package profile loads and selects modules from a profile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Modules ModulesConfig `toml:"modules"`
}
Config is the top-level dotdrift.toml configuration.
type Module ¶
type Module struct {
ID string
App string
Path string
Config ModuleConfig
}
Module is a discovered module with its resolved identity and path.
type ModuleConfig ¶
type ModuleConfig struct {
ID string `toml:"id"`
App string `toml:"app"`
When When `toml:"when"`
Packages Packages `toml:"packages"`
Tools map[string]string `toml:"tools"`
Dotfiles map[string]Dotfile `toml:"dotfiles"`
}
ModuleConfig is the base module.toml configuration.
func LoadModuleConfig ¶
func LoadModuleConfig(dir string) (*ModuleConfig, error)
LoadModuleConfig reads a module.toml from the given directory. It returns the parsed config and the resolved module path, or nil if no module.toml exists.
type ModulesConfig ¶
type ModulesConfig struct {
Disable []string `toml:"disable"`
}
ModulesConfig holds the [modules] table.
type Profile ¶
Profile is the loaded set of modules and selection state.
Click to show internal directories.
Click to hide internal directories.