This commit is contained in:
steven carpenter 2025-07-22 02:55:00 -04:00
commit d5762330da
23 changed files with 718 additions and 0 deletions

View file

@ -0,0 +1,28 @@
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
"{{.ModName}}/tui"
)
var rootCmd = &cobra.Command{
Use: "{{.PackageName}}",
Short: "{{.PackageName}}, {{.ProgramDesc}}",
Run: func(cmd *cobra.Command, args []string) {
if err := tui.Run(); err != nil {
fmt.Println("Error:", err)
os.Exit(1)
}
},
}
func Execute() {
cobra.CheckErr(rootCmd.Execute())
}
func init() {
rootCmd.AddCommand(versionCmd)
}