Recovered the original repl command
This commit is contained in:
+27
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user