Going from a REPL to a TUI

This commit is contained in:
2026-01-05 00:23:55 +00:00
parent 785db2a59b
commit 0162c14c1d
9 changed files with 460 additions and 151 deletions
+5 -1
View File
@@ -1,7 +1,10 @@
// Package devices will define the available devices we can communicate with
package devices
import "esdi/peripheral/types"
import (
"esdi/peripheral/types"
"fmt"
)
// IDs for our devices. They need to be correctly mapped on the devices
// themselves so we can discover them
@@ -66,6 +69,7 @@ func (dCMD *DeviceCMD) Run(args []string) (types.Command, []byte, error) {
}
// Run the function
fmt.Printf("%s command called: %+v\n", dCMD.GetName(), args)
return dCMD.Fn(dCMD, args)
}