Going from a REPL to a TUI
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user