1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-02 03:58:38 -04:00

Add missing handling for -dryrun flag in command-line client

This flag was only handled for the `download-profile` command. Add
the same handling for all other commands (except `detect-settings`).
This commit is contained in:
David Ward
2023-02-05 19:17:05 -05:00
committed by Aaron Lindsay
parent afd882f7d2
commit 1f657a5d18
7 changed files with 35 additions and 0 deletions

View File

@ -35,6 +35,11 @@ func getAccounts() {
}
query.Signup = append(query.Signup, &acctInfo)
if dryrun {
printRequest(client, query)
return
}
response, err := client.Request(query)
if err != nil {
fmt.Println("Error requesting account information:", err)