updated tmpls to use internal logger

This commit is contained in:
steven carpenter 2025-07-22 04:55:32 -04:00
parent 2c58ea6895
commit 51e612a50b
2 changed files with 4 additions and 3 deletions

View file

@ -1,11 +1,11 @@
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
"{{.ModName}}/tui"
"{{.ModName}}/internal/logger"
)
var rootCmd = &cobra.Command{
@ -13,7 +13,7 @@ var rootCmd = &cobra.Command{
Short: "{{.PackageName}}, {{.ProgramDesc}}",
Run: func(cmd *cobra.Command, args []string) {
if err := tui.Run(); err != nil {
fmt.Println("Error:", err)
logger.Log.Errorf("Error: %s", err)
os.Exit(1)
}
},