Adding a way to find new devices

This commit is contained in:
2025-10-22 23:15:33 +01:00
parent a748c9644a
commit b60351319f
3 changed files with 75 additions and 5 deletions
+3 -2
View File
@@ -38,8 +38,9 @@ func (r *REPL) Close() {
// Do whatever cleanup we have to do
}
func (r *REPL) RegisterCMD() {
// Code to register a new command
func (r *REPL) RegisterCMD(newCMD Command) {
// Add a verification to check that the command doesn't exist. Fatal if it does
r.Commands[newCMD.Name] = newCMD
}
func (r *REPL) printPrompt() {