Documentation ¶
Index ¶
- func AptInstall(packages *InstalledPackages, aptName ...string) error
- func BrewInstallCaskProgram(brewName, brewFullName string, packages *InstalledPackages) error
- func BrewInstallProgram(brewName, binaryName string, packages *InstalledPackages) error
- func BrewTap(brewTap string, packages *InstalledPackages) error
- func CmdExec(args ...string) (string, error)
- func CommandExists(cmd string) (string, bool)
- func Contains(s []string, str string) bool
- func CopyStringToFile(data, dest string) error
- func CorrectOS(osType string) bool
- func DownloadAndInstallLatestVersionOfGolang(homeDir string) error
- func DownloadFile(dest, url string) error
- func EmbedFileCopy(dst string, src fs.File) error
- func EmbedFileStringAppendToDest(data []byte, dest string) error
- func ExecCMD(command string) (string, error)
- func Exists(path string) (bool, error)
- func GetCPUType() string
- func GitClone(url, directory string) error
- func ResolveAbsPath(path string) (string, error)
- func RunCommandPipeOutput(command string) error
- func RunCommands(cmds []string) error
- func SetVariableValue(varName, val, osType, configPath string) error
- func StartTmuxSession() error
- type AptInstalled
- type BrewInstalled
- type Directories
- type InstalledPackages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AptInstall ¶
func AptInstall(packages *InstalledPackages, aptName ...string) error
AptInstall ...
func BrewInstallCaskProgram ¶
func BrewInstallCaskProgram(brewName, brewFullName string, packages *InstalledPackages) error
BrewInstallCaskProgram ...
func BrewInstallProgram ¶
func BrewInstallProgram(brewName, binaryName string, packages *InstalledPackages) error
BrewInstallProgram ...
func DownloadAndInstallLatestVersionOfGolang ¶
DownloadAndInstallLatestVersionOfGolang Only for linux x86_64. Mac uses homebrew
func EmbedFileStringAppendToDest ¶
EmbedFileStringAppendToDest takes a slice of bytes and writes it as a string to dest file path
func GetCPUType ¶
func GetCPUType() string
GetCPUType Returns the CPU type for the current runtime environment
func RunCommandPipeOutput ¶
RunCommandPipeOutput ...
func SetVariableValue ¶
SetVariableValue ...
Types ¶
type BrewInstalled ¶
BrewInstalled ...
type InstalledPackages ¶
type InstalledPackages struct { AptInstalledPackages *AptInstalled BrewInstalledPackages *BrewInstalled }
InstalledPackages ...
Click to show internal directories.
Click to hide internal directories.