core-cli: updates to add back json output

This commit is contained in:
Blake Harnden 2022-03-21 20:59:18 -07:00
parent 5398cdd2d5
commit b941395100
2 changed files with 139 additions and 68 deletions

View file

@ -637,6 +637,15 @@ class SessionSummary:
dir=proto.dir,
)
def to_proto(self) -> core_pb2.SessionSummary:
return core_pb2.SessionSummary(
id=self.id,
state=self.state.value,
nodes=self.nodes,
file=self.file,
dir=self.dir,
)
@dataclass
class Hook: