[Feature] Copy Curl Command from Org File
justinbarclay opened this issue · 2 comments
justinbarclay commented
Do you know of anyway to introduce or hack ob-restclient to be able to generate curl commands for you? My use case is I'm abstracting away some data generation to outside of a restclient block (like auth credentials), then passing that data in as a variable. I would like to be able to quickly generate curl commands for either further documentation and to easily share with coworkers.
jamiguet commented
In el mode elastic search mode it does support tangling and if the file
extension is sh it generates the equivalent curl command.
Also in pure rest mode, not inside orgg, ctrl-c ctrl-k will copy to the
clipboard the equivalent curl command.
…On Wed, 16 Jan 2019, 19:20 Justin ***@***.*** wrote:
Do you know of anyway to introduce or hack ob-restclient to be able to
generate curl commands for you? My use case is I'm abstracting away some
data generation to outside of a restclient block (like auth credentials)
and want to be able to quickly generate curl commands for either further
documentation and to easily share with coworkers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQNx4qrx16gRIJVBui42-YoAWe2ezSQks5vD21dgaJpZM4aDqtV>
.
alf commented
Sorry for the long delay in replying here.
I don’t see this as something ob-restclient should support. Rather you should open the source block in restclient mode using C-‘ and use copy the curl command from there.