Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 9ff9829

Browse files
author
Lauri Piispanen
committed
retain output format backwards compatibility
1 parent c905514 commit 9ff9829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

output/output.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func YamlOutput(users GithubUserList, writer io.Writer, options top.Options) err
7878
}
7979

8080
topPublic := users.TopPublic(options.Amount)
81-
fmt.Fprintln(writer, "public_users:")
81+
fmt.Fprintln(writer, "users:")
8282
outputUsers(topPublic, true)
8383

8484
topPrivate := users.TopPrivate(options.Amount)
@@ -100,7 +100,7 @@ func YamlOutput(users GithubUserList, writer io.Writer, options top.Options) err
100100
}
101101
}
102102

103-
fmt.Fprintln(writer, "\npublic_organizations:")
103+
fmt.Fprintln(writer, "\norganizations:")
104104
outputOrganizations(topPublic.TopOrgs(10))
105105
fmt.Fprintln(writer, "\nprivate_organizations:")
106106
outputOrganizations(topPrivate.TopOrgs(10))

0 commit comments

Comments
 (0)