1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 19:58:37 -04:00

cmd/ofx: Add -dryrun

This commit is contained in:
2020-12-07 13:37:43 -05:00
parent 4c7c48cab7
commit 56ca46714b
3 changed files with 18 additions and 0 deletions

View File

@ -31,3 +31,14 @@ func newRequest() (ofxgo.Client, *ofxgo.Request) {
return client, &query
}
func printRequest(c ofxgo.Client, r *ofxgo.Request) {
r.SetClientFields(c)
b, err := r.Marshal()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(b)
}