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
- func PromptYN(message string) (result bool)
- func RewriteConfig()
Constants ¶
View Source
const COLORERROR = lipgloss.Color("1")
View Source
const COLORINFO = lipgloss.Color("4")
View Source
const COLORSUCCESS = lipgloss.Color("2")
View Source
const COLORWARN = lipgloss.Color("11")
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 BasicStyle = lipgloss.NewStyle()
View Source
var BedrockDir = filepath.Join(Home, ".bedrock")
View Source
var DefaultPathExpansions = []string{"~", Home, "$HOME", Home, "$BEDROCK_DIR", BedrockDir}
View Source
var ErrorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#e64949"))
View Source
var ExtensionInstallStep = lipgloss.NewStyle().MarginLeft(2)
View Source
var Home, _ = homedir.Dir()
View Source
var InfoStyle = lipgloss.NewStyle().Foreground(COLORINFO)
View Source
var InfoStyleBold = lipgloss.NewStyle().Bold(true).Foreground(COLORINFO)
View Source
var WarnStyle = lipgloss.NewStyle().Foreground(COLORWARN)
View Source
var WarnStyleBold = lipgloss.NewStyle().Bold(true).Foreground(COLORWARN)
Functions ¶
func CurrentPlatform ¶
func CurrentPlatform() string
func DefaultPkgManager ¶
func DefaultPkgManager() string
func ExecuteCommandInShell ¶
func ExecuteCommandWithArgs ¶
func ExpandPath ¶
func RewriteConfig ¶
func RewriteConfig()
RewriteConfig rewrites the config with desired indentation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.