JSON configs describe network and node MACs; scenarios run command sequences with expect checks. Share UART client API across CLI and tests. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
245 B
Go
16 lines
245 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func runVersion(sp *serialPort) error {
|
|
ver, err := sp.getVersion()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
fmt.Printf("version: %d\n", ver.GetVersion())
|
|
fmt.Printf("git_hash: %s\n", ver.GetGitHash())
|
|
return nil
|
|
}
|