Skip to content

Commit f3b2d57

Browse files
committed
Renamed BoardList -> AttachedBoardList
1 parent 27c2ad8 commit f3b2d57

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

commands/board/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ func runListCommand(cmd *cobra.Command, args []string) {
8484
}
8585

8686
// NewBoardList returns a new board list by adding discovered boards from the board list and a monitor.
87-
func NewBoardList(pm *packagemanager.PackageManager, monitor *discovery.Monitor) *output.BoardList {
87+
func NewBoardList(pm *packagemanager.PackageManager, monitor *discovery.Monitor) *output.AttachedBoardList {
8888
if monitor == nil {
8989
return nil
9090
}
9191

9292
serialDevices := monitor.Serial()
9393
networkDevices := monitor.Network()
94-
ret := &output.BoardList{
94+
ret := &output.AttachedBoardList{
9595
SerialBoards: make([]output.SerialBoardListItem, 0, len(serialDevices)),
9696
NetworkBoards: make([]output.NetworkBoardListItem, 0, len(networkDevices)),
9797
}

common/formatter/output/board_structs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ type NetworkBoardListItem struct {
5050
Location string `json:"location,required"`
5151
}
5252

53-
// BoardList is a list of attached boards.
54-
type BoardList struct {
53+
// AttachedBoardList is a list of attached boards.
54+
type AttachedBoardList struct {
5555
SerialBoards []SerialBoardListItem `json:"serialBoards,required"`
5656
NetworkBoards []NetworkBoardListItem `json:"networkBoards,required"`
5757
}
5858

59-
func (bl *BoardList) String() string {
59+
func (bl *AttachedBoardList) String() string {
6060
table := uitable.New()
6161
table.MaxColWidth = 100
6262
table.Wrap = true // wrap columns

0 commit comments

Comments
 (0)