Skip to content

Commit

Permalink
feat(cli): add showing dependencies in describe command
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmoz committed Mar 14, 2024
1 parent 761faec commit a495ebc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/glasskube/cmd/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,20 @@ var describeCmd = &cobra.Command{
bold := color.New(color.Bold).SprintFunc()
fmt.Printf("%v %v\n", bold("Package Name:"), manifest.Name)
fmt.Printf("%v %v\n", bold("Short Description:"), stringOrDash(manifest.ShortDescription))
fmt.Println()
fmt.Printf("%v \n%v\n", bold("Long Description:"), stringOrDash(manifest.LongDescription))
if len(manifest.Dependencies) > 0 {
fmt.Println()
fmt.Println(bold("Dependencies:"))
for _, dep := range manifest.Dependencies {
fmt.Printf(" * %v", dep.Name)
if len(dep.Version) > 0 {
fmt.Printf(" (%v)", dep.Version)
}
fmt.Println()
}
}
fmt.Println()
fmt.Printf("%v \n", bold("References:"))
version := latestVersion
if pkg != nil {
Expand Down

0 comments on commit a495ebc

Please sign in to comment.