File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,15 @@ func runDetailsCommand(cmd *cobra.Command, args []string) {
83
83
details .ConfigOptions = append (details .ConfigOptions , configOption )
84
84
}
85
85
86
+ details .RequiredTools = board .PlatformRelease .Dependencies
87
+
86
88
output .Emit (details )
87
89
}
88
90
89
91
type boardDetails struct {
90
92
Name string
91
93
ConfigOptions []* boardConfigOption
94
+ RequiredTools []* cores.ToolDependency
92
95
}
93
96
94
97
type boardConfigOption struct {
@@ -114,8 +117,16 @@ func (details *boardDetails) EmitJSON() string {
114
117
115
118
func (details * boardDetails ) EmitTerminal () string {
116
119
table := output .NewTable ()
117
- table .AddRow ("Board name:" , details .Name )
118
120
table .SetColumnWidthMode (1 , output .Average )
121
+ table .AddRow ("Board name:" , details .Name )
122
+ for i , tool := range details .RequiredTools {
123
+ head := ""
124
+ if i == 0 {
125
+ table .AddRow ()
126
+ head = "Required tools:"
127
+ }
128
+ table .AddRow (head , tool .ToolPackager + ":" + tool .ToolName , "" , tool .ToolVersion )
129
+ }
119
130
for _ , option := range details .ConfigOptions {
120
131
table .AddRow ()
121
132
table .AddRow ("Option:" ,
You can’t perform that action at this time.
0 commit comments