Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
37c81da9
Commit
37c81da9
authored
Dec 05, 2018
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added required tools in board details
parent
de8b37fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
commands/board/details.go
commands/board/details.go
+12
-1
No files found.
commands/board/details.go
View file @
37c81da9
...
...
@@ -83,12 +83,15 @@ func runDetailsCommand(cmd *cobra.Command, args []string) {
details
.
ConfigOptions
=
append
(
details
.
ConfigOptions
,
configOption
)
}
details
.
RequiredTools
=
board
.
PlatformRelease
.
Dependencies
output
.
Emit
(
details
)
}
type
boardDetails
struct
{
Name
string
ConfigOptions
[]
*
boardConfigOption
RequiredTools
[]
*
cores
.
ToolDependency
}
type
boardConfigOption
struct
{
...
...
@@ -114,8 +117,16 @@ func (details *boardDetails) EmitJSON() string {
func
(
details
*
boardDetails
)
EmitTerminal
()
string
{
table
:=
output
.
NewTable
()
table
.
AddRow
(
"Board name:"
,
details
.
Name
)
table
.
SetColumnWidthMode
(
1
,
output
.
Average
)
table
.
AddRow
(
"Board name:"
,
details
.
Name
)
for
i
,
tool
:=
range
details
.
RequiredTools
{
head
:=
""
if
i
==
0
{
table
.
AddRow
()
head
=
"Required tools:"
}
table
.
AddRow
(
head
,
tool
.
ToolPackager
+
":"
+
tool
.
ToolName
,
""
,
tool
.
ToolVersion
)
}
for
_
,
option
:=
range
details
.
ConfigOptions
{
table
.
AddRow
()
table
.
AddRow
(
"Option:"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment