Commit 772bbf9a authored by Cristian Maglie's avatar Cristian Maglie

small fix to version command

parent 4d2bdde3
......@@ -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 := ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment