Documentation ¶
Index ¶
Constants ¶
View Source
const ( ORIGINAL_TASK = "ORIGINAL_TASK" CURRENT_TASK = "CURRENT_TASK" CURRENT_PKG = "CURRENT_PKG" SUDO = "SUDO" CONFIG_PATH = "CONFIG_PATH" TARGET_PATH = "TARGET_PATH" SOURCE_PATH = "SOURCE_PATH" )
Variables ¶
This section is empty.
Functions ¶
func NewDecider ¶
Types ¶
type General ¶
type General struct { InstallerPreferences []string `toml:"installer_preferences"` ConfigDir string `toml:"config_dir"` HomeDir string `toml:"home_dir"` }
The General section of a TOML config
type Installer ¶
type Installer struct { Name string RunIf []string `toml:"run_if"` Sudo bool Cmd string Update string Updated bool }
An installer definition from a TOML config
type Package ¶
A package alias as defined in a TOML config It translates a common name like "vim" to the package name for the specific installer.
type Recipe ¶
type Recipe struct { General General `toml:"general"` Packages map[string]Package `toml:"pkg"` Shells map[string]Shell `toml:"shell"` InstallerDefs map[string]Installer `toml:"installer"` Tasks map[string]Task `toml:"task"` }
func ResolveRecipe ¶
func ResolveRecipe(fs io.Filesystem, configLocation string) (*Recipe, error)
type RunConfig ¶
type RunConfig struct { RecipeLocation string Operation Operation Recipe Recipe ForceInstaller string // ForceInstaller will try to force the specified installer Sudo string // Sudo will force using sudo when performing commands Verbose bool // Talk more DryRun bool // Don't actually run installation/copy/symlink commands TargetDir string // TargetDir is the base directory for symlinks, defaults to ${HOME} SourceDir string // SourceDir is the base directory to search for source files to symlink against, defaults to dir(RecipeLocation) // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.