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:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user