mirror of
https://github.com/silicoflare/envy.git
synced 2026-05-26 19:57:59 +05:30
27 lines
409 B
Go
27 lines
409 B
Go
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path"
|
|
|
|
"github.com/charmbracelet/lipgloss"
|
|
)
|
|
|
|
var ErrStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#F00"))
|
|
|
|
func ErrPrint(data string) {
|
|
fmt.Println(ErrStyle.Render(data))
|
|
}
|
|
|
|
var EnvyPath string
|
|
|
|
func Init() {
|
|
conf, err := os.UserConfigDir()
|
|
if err != nil {
|
|
panic("Couldn't find config directory:" + err.Error())
|
|
}
|
|
|
|
EnvyPath = path.Join(conf, "envy")
|
|
}
|