cli: add version command

parent 9d0d145b
......@@ -117,6 +117,12 @@ class OauTest(cmd.Cmd):
print('error resetting attenuation in channel {}'.format(ch))
return
def do_version(self, arg):
"""display software version."""
version = c_char_p.in_dll(self.api, "liboau_att_version_s")
version = str(version.value, 'utf8')
print(version)
def do_EOF(self, arg):
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment