Skip to content

Commit

Permalink
Added hardwareId output in 'board list -w' too
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Feb 9, 2023
1 parent c14e248 commit 8c88ec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/cli/board/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func watchList(cmd *cobra.Command, inst *rpc.Instance) {
Address: event.Port.Port.Address,
Protocol: event.Port.Port.Protocol,
ProtocolLabel: event.Port.Port.ProtocolLabel,
HardwareID: event.Port.Port.HardwareId,
Properties: event.Port.Port.Properties,
Boards: event.Port.MatchingBoards,
Error: event.Error,
Expand Down Expand Up @@ -181,6 +182,7 @@ type watchEvent struct {
Label string `json:"label,omitempty"`
Protocol string `json:"protocol,omitempty"`
ProtocolLabel string `json:"protocol_label,omitempty"`
HardwareID string `json:"hardwareId,omitempty"`
Properties map[string]string `json:"properties"`
Boards []*rpc.BoardListItem `json:"boards,omitempty"`
Error string `json:"error,omitempty"`
Expand Down

0 comments on commit 8c88ec8

Please sign in to comment.