Very naive REPL

This commit is contained in:
2025-10-21 21:52:16 +01:00
parent d52f8bcfa5
commit ba3dcebb27
4 changed files with 131 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package cmd
import (
"esdi/repl"
"github.com/spf13/cobra"
)
func replCmdAction(cmd *cobra.Command, args []string) {
repl := repl.NewREPL(repl.REPLCfg{
PS1: "\rESDI > ",
})
repl.Start()
}
// removeLabelCmd represents the removeLabel command
var replCmd = &cobra.Command{
Use: "repl",
Short: "run the repl to interact with the display",
Long: ``,
Run: replCmdAction,
}
func init() {
rootCmd.AddCommand(replCmd)
}