8000 Log if app purchase was required and executed by tux-mind · Pull Request #339 · majd/ipatool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Log if app purchase was required and executed #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func downloadCmd() *cobra.Command {

var lastErr error
var acc appstore.Account
var purchased bool = false

return retry.Do(func() error {
infoResult, err := dependencies.AppStore.AccountInfo()
Expand Down Expand Up @@ -63,6 +64,10 @@ func downloadCmd() *cobra.Command {
if err != nil {
return err
}
purchased = true
dependencies.Logger.Verbose().
Bool("success", true).
Msg("purchase")
}

interactive, _ := cmd.Context().Value("interactive").(bool)
Expand Down Expand Up @@ -96,6 +101,7 @@ func downloadCmd() *cobra.Command {

dependencies.Logger.Log().
Str("output", out.DestinationPath).
Bool("purchased", purchased).
Bool("success", true).
Send()

Expand Down
0