helpers

package
v0.0.1-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ColorCyan string = "\033[34m"
View Source
const ColorGreen string = "\033[32m"
View Source
const ColorRed string = "\033[31m"
View Source
const ColorReset string = "\033[0m"
View Source
const ColorYellow string = "\033[33m"

Variables

View Source
var BedrockDir = filepath.Join(Home, ".bedrock")
View Source
var DefaultPathExpansions = []string{"~", Home, "$HOME", Home, "$BEDROCK_DIR", BedrockDir}
View Source
var Home, _ = homedir.Dir()

Functions

func Copy

func Copy(src, dst string) error

func CurrentPlatform

func CurrentPlatform() string

func DefaultPkgManager

func DefaultPkgManager() string

func Download

func Download(url string, destination string) error

func ExecuteCommand

func ExecuteCommand(binary string, command string) (string, error)

func ExecuteCommandInShell

func ExecuteCommandInShell(execCtx execInShellContext, shell string, command string) (string, error)

func ExecuteCommandWithArgs

func ExecuteCommandWithArgs(binary string, command []string) (string, error)

func Exists

func Exists(path string) bool

func ExpandPath

func ExpandPath(str string, exp ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL