Closed chiefy closed 7 years ago
I think if we're going to expose HTTP request data to the shell we should do it using the existing standard of CGI which was invented for this purpose! :D
Oh but also great idea and I'd love that blog post.
@progrium didn't even think of that.
You were on the right path though! Do you want to open an issue to implement supporting CGI?
@progrium yes, I started messing around w/ this last night. I will open a new issue.
I was thinking of writing a blog post on how to use
cmd.io
to create a simple Slack slash command. The issue became that Slack dictates the structure of the parameters it sends as k/v GET query or POST parameters.I started toying with an idea to convert the query string to a parsed JSON string representation. I got a PoC working on this branch.
The below
cmd
is justoutput:
Thoughts?