Skip to content

Commit

Permalink
chore: add MinOS to BuildVersion LC stringer
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Dec 11, 2023
1 parent 49112ca commit cd0989f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -2044,8 +2044,9 @@ func (b *BuildVersion) Write(buf *bytes.Buffer, o binary.ByteOrder) error {
func (b *BuildVersion) String() string {
if b.NumTools > 0 {
if b.NumTools == 1 {
return fmt.Sprintf("Platform: %s, SDK: %s, Tool: %s (%s)",
return fmt.Sprintf("Platform: %s, MinOS: %s, SDK: %s, Tool: %s (%s)",
b.Platform,
b.Minos,
b.Sdk,
b.Tools[0].Tool,
b.Tools[0].Version)
Expand All @@ -2054,8 +2055,9 @@ func (b *BuildVersion) String() string {
for _, t := range b.Tools {
tools = append(tools, fmt.Sprintf("%s (%s)", t.Tool, t.Version))
}
return fmt.Sprintf("Platform: %s, SDK: %s, Tools: [%s]",
return fmt.Sprintf("Platform: %s, MinOS: %s, SDK: %s, Tools: [%s]",
b.Platform,
b.Minos,
b.Sdk,
strings.Join(tools, ", "))
}
Expand Down

0 comments on commit cd0989f

Please sign in to comment.