toastynerd / superagent-cli

MIT License
23 stars 8 forks source link

Parse object literals, not just strict JSON #4

Closed david-davidson closed 9 years ago

david-davidson commented 9 years ago

Oh sup @toastynerd!

I use this tool all the time, and I often forget that I need to format my requests as strict JSON--I'll try something like superagent url verb {foo: 'bar'}, not (the correct) superagent url verb '{"foo": "bar"}'. The former syntax is easier to read and write, too, with less room for human error.

What if superagent-cli could parse both options?

PR summary:

david-davidson commented 9 years ago

@toastynerd plz respond

toastynerd commented 9 years ago

sorry just saw this, I've been a little busy this looks like a good idea. Let me look over the code.

toastynerd commented 9 years ago

Yeah, thsi looks good, I'll merge and republish.