mirror of
https://github.com/silicoflare/envy.git
synced 2026-05-26 19:57:59 +05:30
fix: migration not applying on db
This commit is contained in:
@@ -2,6 +2,8 @@ package utils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
)
|
||||
@@ -11,3 +13,14 @@ 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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user