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
772bbf9a
Commit
772bbf9a
authored
Aug 07, 2018
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix to version command
parent
4d2bdde3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
common/formatter/output/lib_structs.go
common/formatter/output/lib_structs.go
+1
-14
No files found.
common/formatter/output/lib_structs.go
View file @
772bbf9a
...
...
@@ -31,12 +31,7 @@ type VersionResult struct {
}
func
(
vr
VersionResult
)
String
()
string
{
return
fmt
.
Sprintf
(
"%s ver.%s"
,
vr
.
CommandName
,
vr
.
Version
)
}
// VersionFullInfo represents the output of a verbose request of version of a command.
type
VersionFullInfo
struct
{
Versions
[]
VersionResult
`json:"versions,required"`
return
fmt
.
Sprintf
(
"%s version %s"
,
vr
.
CommandName
,
vr
.
Version
)
}
// LibProcessResults represent the result of a process on libraries.
...
...
@@ -76,14 +71,6 @@ func (lpr LibProcessResults) String() string {
return
strings
.
TrimSpace
(
ret
)
}
func
(
vfi
VersionFullInfo
)
String
()
string
{
ret
:=
""
for
_
,
vr
:=
range
vfi
.
Versions
{
ret
+=
fmt
.
Sprintln
(
vr
)
}
return
strings
.
TrimSpace
(
ret
)
}
// String returns a string representation of the object.
func
(
lsr
LibSearchResults
)
String
()
string
{
ret
:=
""
...
...
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