Documentation ¶
Index ¶
- Constants
- Variables
- func Copy(src, dst string) error
- func CurrentPlatform() string
- func DefaultPkgManager() string
- func Download(url string, destination string) error
- func ExecuteCommand(binary string, command string) (string, error)
- func ExecuteCommandInShell(execCtx execInShellContext, shell string, command string) (string, error)
- func ExecuteCommandWithArgs(binary string, command []string) (string, error)
- func Exists(path string) bool
- func ExpandPath(str string, exp ...string) string
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 CurrentPlatform ¶
func CurrentPlatform() string
func DefaultPkgManager ¶
func DefaultPkgManager() string
func ExecuteCommandInShell ¶
func ExecuteCommandWithArgs ¶
func ExpandPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.