[cli] add api version command (#5544)

This adds a CLI command to get the API version number.
This commit is contained in:
Moandor
2020-09-21 08:38:33 -07:00
committed by GitHub
parent eabb34fc26
commit e7e84b6ae7
3 changed files with 32 additions and 5 deletions
+5
View File
@@ -108,6 +108,11 @@ expect "Done"
send "version\n"
expect "Done"
send "version api\n"
expect -re {\d+}
expect "Done"
send "version something_invalid\n"
expect "Error 35: InvalidCommand"
send "joinerport 10001\n"
expect "Done"