heroku / heroku-connect-plugin

CLI plugin for Heroku Connect (experimental)
Apache License 2.0
23 stars 8 forks source link

Rename mapping to mapping:json #11

Closed gulopine closed 8 years ago

iamjem commented 8 years ago

:+1:

i'm not sure i understand this command though, seems odd to have commands that just spit out raw JSON from the API? the mapping config I could understand.

gulopine commented 8 years ago

Yeah, I'm not entirely sure myself, but I assume it's so tools can easily implement more complicated logic based on the connection details without having to deal with the API directly. You could pair this with something like http://trentm.com/json/ or https://stedolan.github.io/jq/ to do some pretty interesting things.

We can revisit whether this is necessary before publishing a new version, but for now, I don't want to remove any functionality that's already there.

sibson commented 8 years ago

I’m +0.5 on having a way to easily access API endpoints from a command line. Its much nicer to put h connect:mapping:json Account into a script than do the curl dance to set headers everytime.