Skip to content

Commit 772bbf9

Browse files
committed
small fix to version command
1 parent 4d2bdde commit 772bbf9

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

common/formatter/output/lib_structs.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ type VersionResult struct {
3131
}
3232

3333
func (vr VersionResult) String() string {
34-
return fmt.Sprintf("%s ver.%s", vr.CommandName, vr.Version)
35-
}
36-
37-
// VersionFullInfo represents the output of a verbose request of version of a command.
38-
type VersionFullInfo struct {
39-
Versions []VersionResult `json:"versions,required"`
34+
return fmt.Sprintf("%s version %s", vr.CommandName, vr.Version)
4035
}
4136

4237
// LibProcessResults represent the result of a process on libraries.
@@ -76,14 +71,6 @@ func (lpr LibProcessResults) String() string {
7671
return strings.TrimSpace(ret)
7772
}
7873

79-
func (vfi VersionFullInfo) String() string {
80-
ret := ""
81-
for _, vr := range vfi.Versions {
82-
ret += fmt.Sprintln(vr)
83-
}
84-
return strings.TrimSpace(ret)
85-
}
86-
8774
// String returns a string representation of the object.
8875
func (lsr LibSearchResults) String() string {
8976
ret := ""

0 commit comments

Comments
 (0)