Recovered the original repl command

This commit is contained in:
2026-01-12 20:07:45 +00:00
parent e7bfc5c81f
commit cbb8279de8
4 changed files with 122 additions and 93 deletions
+27
View File
@@ -0,0 +1,27 @@
package cmd
import (
"esdi/tui"
"fmt"
"github.com/spf13/cobra"
)
func tuiCmdAction(cmd *cobra.Command, args []string) {
err := tui.Run()
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 a TUI",
Long: ``,
Run: tuiCmdAction,
}
func init() {
rootCmd.AddCommand(tuiCmd)
}