Skip to content

Commit

Permalink
Renamed homepage to repository
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jul 12, 2024
1 parent 654a41b commit 9ce98a6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/tool/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var testLoadToolsString = `{
"baz",
"blarg"
],
"homepage": "https://foo.bar",
"repository": "https://foo.bar",
"description": "Foo"
},
{
Expand Down
5 changes: 4 additions & 1 deletion pkg/tool/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ func (tool *Tool) ShowUpdate(indentation int) string {
func (tool *Tool) Print() {
fmt.Printf("Name: %s\n", tool.Name)
fmt.Printf(" Description: %s\n", tool.Description)
fmt.Printf(" Homepage: %s\n", tool.Homepage)
if len(tool.Homepage) > 0 {
fmt.Printf(" Homepage: %s\n", tool.Homepage)
}
fmt.Printf(" Repository: %s\n", tool.Repository)
fmt.Printf(" Version: %s\n", tool.Version)

if tool.Binary != "" {
Expand Down
3 changes: 2 additions & 1 deletion pkg/tool/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ type Tool struct {
RuntimeDependencies []string `json:"runtime_dependencies,omitempty"`
Platforms []string `json:"platforms,omitempty"`
ConflictsWith []string `json:"conflicts_with,omitempty"`
Homepage string `json:"homepage"`
Homepage string `json:"homepage,omitempty"`
Repository string `json:"repository"`
Description string `json:"description"`
Messages Messages `json:"messages,omitempty"`
Renovate Renovate `json:"renovate,omitempty"`
Expand Down

0 comments on commit 9ce98a6

Please sign in to comment.