Skip to content

Commit

Permalink
chore: remove availableVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
stingalleman committed Mar 25, 2022
1 parent 3bd3da5 commit c277576
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The new alternative to Homebrew, MacPorts and Fink.
## Installation

```bash
# installatiomn
# installation
```

## Documentation
Expand Down
1 change: 0 additions & 1 deletion cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ var searchCmd = &cobra.Command{
// Print package information
fmt.Printf("Description: %s\n", pkgData.PkgDef.Package.Description)
fmt.Printf("Latest version: %s\n", pkgData.PkgDef.Package.Version)
fmt.Printf("Available versions: %s\n", strings.Join(pkgData.PkgDef.Package.AvailableVersions, ", "))
fmt.Printf("Homepage: %s\n\n", style.Link.Render(pkgData.PkgDef.Package.Homepage))

intelPackage := style.Success.Render("✓")
Expand Down
11 changes: 5 additions & 6 deletions pkg/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ type PackageDefinition struct {
}

type Package struct {
Name string `toml:"name"`
Description string `toml:"description"`
Version string `toml:"version"`
License string `toml:"license"`
Homepage string `toml:"homepage"`
AvailableVersions []string `toml:"availableVersions"`
Name string `toml:"name"`
Description string `toml:"description"`
Version string `toml:"version"`
License string `toml:"license"`
Homepage string `toml:"homepage"`
}

type Dependencies struct {
Expand Down

0 comments on commit c277576

Please sign in to comment.