core-cli: updates to add back json output
This commit is contained in:
parent
5398cdd2d5
commit
b941395100
2 changed files with 139 additions and 68 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue