Files
esdi/cmd/tui.go
T
2026-01-05 00:23:55 +00:00

28 lines
442 B
Go

package cmd
import (
"esdi/tui"
"fmt"
"github.com/spf13/cobra"
)
func tuiCmdAction(cmd *cobra.Command, args []string) {
err := tui.Init()
if err != nil {
fmt.Printf("error running TUI: %s\n", err.Error())
}
}
// removeLabelCmd represents the removeLabel command
var tuiCmd = &cobra.Command{
Use: "tui",
Short: "runs an interactive application",
Long: ``,
Run: tuiCmdAction,
}
func init() {
rootCmd.AddCommand(tuiCmd)
}