helpers

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 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

func PromptYN

func PromptYN(message string) (result bool)

func RewriteConfig

func RewriteConfig()

RewriteConfig rewrites the config with desired indentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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