feat: implement pin command

This commit is contained in:
2025-09-24 12:24:01 +05:30
parent a7b55fc080
commit e71f4f4e26
2 changed files with 96 additions and 0 deletions

View File

@@ -9,6 +9,13 @@ import (
"gorm.io/gorm"
)
func StopIfErr(err error) {
if err != nil {
ErrPrint(err.Error())
os.Exit(1)
}
}
func GetEnvy() (*toml.Tree, error) {
cwd, err := os.Getwd()
if err != nil {