interactive client: improve watch function

- watch is now a command, not a module method
- finish watching with ctrl-C
- watching an io module logs communication
- add bin/frappy-cli to start interactive client
+ remove sorted function from StructOf.format_value

Change-Id: I7dd707473e4534f2d39c5d6afc533c2d872380f8
This commit is contained in:
2023-01-30 14:28:13 +01:00
parent 878bb6f892
commit 6b751f845f
4 changed files with 138 additions and 26 deletions

View File

@@ -1035,7 +1035,7 @@ class StructOf(DataType):
return self(dict(value))
def format_value(self, value, unit=None):
return '{%s}' % (', '.join(['%s=%s' % (k, self.members[k].format_value(v)) for k, v in sorted(value.items())]))
return '{%s}' % (', '.join(['%s=%s' % (k, self.members[k].format_value(v)) for k, v in value.items()]))
def compatible(self, other):
try: