Skip to content

Commit

Permalink
fix print playstore info
Browse files Browse the repository at this point in the history
  • Loading branch information
andpalmier committed Feb 16, 2022
1 parent de77e84 commit 4bfef29
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package main

import (
"fmt"
"github.com/fatih/color"
"reflect"

"github.com/fatih/color"
)

// colors to improve readability
Expand Down Expand Up @@ -47,7 +48,22 @@ func (androidapp *AndroidApp) printHash() {
func (androidapp *AndroidApp) printPlayStoreInfo() {
yellow.Println("\n* Play Store")
if androidapp.PlayStore.Url != "" {
printStruct(androidapp.PlayStore)
fmt.Printf("Url:\t\t")
cyan.Printf("%v\n", androidapp.PlayStore.Url)
fmt.Printf("Version:\t")
cyan.Printf("%v\n", androidapp.PlayStore.Version)
fmt.Printf("Summary:\t")
cyan.Printf("%s\n", androidapp.PlayStore.Summary)
fmt.Printf("Developer (id):\t")
cyan.Printf("%s (%s)\n", androidapp.PlayStore.Developer.Name, androidapp.PlayStore.Developer.Id)
fmt.Printf("Developer mail:\t")
cyan.Printf("%s\n", androidapp.PlayStore.Developer.Mail)
fmt.Printf("Release:\t")
cyan.Printf("%s\n", androidapp.PlayStore.Release)
fmt.Printf("Installs:\t")
cyan.Printf("%s\n", androidapp.PlayStore.Installs)
fmt.Printf("Score:\t\t")
cyan.Printf("%v\n", androidapp.PlayStore.Score)
} else {
italic.Println("app not found in Play Store")
}
Expand Down
Binary file modified screen_snapseed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4bfef29

Please sign in to comment.