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, packages *InstalledPackages) error
- func DownloadFile(dest, url string) error
- func EmbedFileCopy(dst string, src fs.File) error
- func EmbedFileStringAppendToDest(data []byte, dest string) error
- func EmbedFileStringPrependToDest(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 Infof(format string, args ...interface{})
- func InstallPipPackages(installedPackages *PipInstalled, pkgName ...string) error
- func IsRoot() bool
- func LogError(err error) error
- func LogWarningf(format string, args ...interface{})
- func PipInstall(packagesToInstall []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
- func TimeTrack(start time.Time, name string)
- func VersionGreaterOrEqual(versionString string, minVersionString string) bool
- type AptInstalled
- type BrewInstalled
- type Directories
- type InstalledPackages
- type PipInstalled
- type PythonVersions
- type Record
- type Version
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 ¶
func DownloadAndInstallLatestVersionOfGolang(homeDir string, packages *InstalledPackages) error
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 EmbedFileStringPrependToDest ¶
EmbedFileStringPrependToDest takes a slice of bytes and prepend writes it as a string to the beginning of the dest file path
func GetCPUType ¶
func GetCPUType() string
GetCPUType Returns the CPU type for the current runtime environment
func InstallPipPackages ¶ added in v2.1.3
func InstallPipPackages(installedPackages *PipInstalled, pkgName ...string) error
InstallPipPackages ...
func LogWarningf ¶ added in v2.1.3
func LogWarningf(format string, args ...interface{})
LogWarningf logs a warning to stdout
func RunCommandPipeOutput ¶
RunCommandPipeOutput runs a bash command and pipes the output to stdout and stderr in realtime
func SetVariableValue ¶
SetVariableValue ...
func VersionGreaterOrEqual ¶ added in v2.1.3
VersionGreaterOrEqual ...
Types ¶
type BrewInstalled ¶
BrewInstalled ...
type InstalledPackages ¶
type InstalledPackages struct { AptInstalledPackages *AptInstalled BrewInstalledPackages *BrewInstalled }
InstalledPackages ...
type PipInstalled ¶ added in v2.1.3
type PipInstalled struct { Name []string Versions PythonVersions }
func NewPipInstalled ¶ added in v2.1.3
func NewPipInstalled() (*PipInstalled, error)
NewPipInstalled returns a slice of all the installed python3 pip packages
type PythonVersions ¶ added in v2.1.3
func GetPythonAndPipVersion ¶ added in v2.1.3
func GetPythonAndPipVersion() (*PythonVersions, error)
GetPythonAndPipVersion ...
type Record ¶
Record is a type for prepending string text to a file
func (*Record) PrependStringToFile ¶
PrependStringToFile prepends a given string to an existing file while preserving the original formatting