[cli] add context for the user commands (#5587)

This makes using a class method as the cli handler easier.
This commit is contained in:
Jiacheng Guo
2020-10-15 07:58:37 -07:00
committed by GitHub
parent 54b8d29e8f
commit fdb9e43fa0
6 changed files with 46 additions and 22 deletions
+3
View File
@@ -108,6 +108,9 @@ check()
sudo expect <<EOF | tee "${OT_OUTPUT}" &
spawn ${OT_CLI_CMD}
send "radiourl\r\n"
expect "${RADIO_URL}"
expect "Done"
send "panid 0xface\r\n"
expect "Done"
send "ifconfig up\r\n"