Skip to content

Commit 6248d7f

Browse files
committed
Added hardwareId output in 'board list -w' too
1 parent f606642 commit 6248d7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: internal/cli/board/list.go

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func watchList(cmd *cobra.Command, inst *rpc.Instance) {
105105
Address: event.Port.Port.Address,
106106
Protocol: event.Port.Port.Protocol,
107107
ProtocolLabel: event.Port.Port.ProtocolLabel,
108+
HardwareID: event.Port.Port.HardwareId,
108109
Properties: event.Port.Port.Properties,
109110
Boards: event.Port.MatchingBoards,
110111
Error: event.Error,
@@ -181,6 +182,7 @@ type watchEvent struct {
181182
Label string `json:"label,omitempty"`
182183
Protocol string `json:"protocol,omitempty"`
183184
ProtocolLabel string `json:"protocol_label,omitempty"`
185+
HardwareID string `json:"hardwareId,omitempty"`
184186
Properties map[string]string `json:"properties"`
185187
Boards []*rpc.BoardListItem `json:"boards,omitempty"`
186188
Error string `json:"error,omitempty"`

0 commit comments

Comments
 (0)