Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DevIsDispatchSkipped tells if the dispatch (to the build installer) is skipped. // This should never be switched to true here, because that is what we want always. // This is for testing/debugging only. DevIsDispatchSkipped = false )
View Source
const IsRunningCoverage = false
IsRunningCoverage tells if we are running coverage.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultTemplateSearchDir ¶
GetDefaultTemplateSearchDir returns the search directories for potential template dirs.
Types ¶
type Arguments ¶
type Arguments struct { Config string InternalAutoUpdate bool InternalPostDispatch bool InternalUpdateFromVersion string // Build version we are updating from. InternalUpdateTo string // Commit SHA to update local branch to remote. InternalBinaries []string // Binaries which need to get installed. DryRun bool NonInteractive bool SkipInstallIntoExisting bool // Skip install into existing repositories. OnlyServerHooks bool // Only maintain server hooks. UseCoreHooksPath bool // Use the `core.hooksPath` for the template dir. InstallPrefix string // Install prefix for Githooks. TemplateDir string // Template dir to use for the hooks. CloneURL string // Clone URL of the Githooks repository. CloneBranch string // Clone branch for Githooks repository. DeployAPI string // Deploy API to use for auto detection of deploy settings. DeploySettings string // Deploy settings YAML file. BuildFromSource bool // If we build the install/update from source. BuildTags []string // Go build tags. UseStdin bool }
Arguments repesents all CLI arguments for the installer.
type InstallSet ¶
InstallSet is a type wrapper for installed repo data.
type Settings ¶
type Settings struct { Cwd string // The current working directory. InstallDir string // The install directory. CloneDir string // The release clone dir inside the install dir. TempDir string // The temporary directory inside the install dir. HookTemplateDir string // The chosen hook template directory. // Registered Repos loaded from the install dir. // New registered repos will be added here. RegisteredGitDirs hooks.RegisterRepos // All repositories Git directories where Githooks run-wrappers have been installed. InstalledGitDirs InstallSet }
Settings are the settings for the installer.
Click to show internal directories.
Click to hide internal directories.