You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ripl comes in handy and I could easily throw in strava console that let me delegate anything from my client and do things like athlete.name.
I also would like to be able to just pass these commands on the command line and let Ripl evaluate them for me, without a prompt. How do I do that?
moduleStravamoduleCliclassConsole < SimpleDelegatorattr_reader:clientdefinitialize(access_token)@client=Strava::Api::Client.new(access_token: access_token)super@clientenddefrun(args)# HOW DO I DO THIS?enddefstart!Ripl.start(binding: binding,prompt: 'Strava> ')endendendend
I can do this without ripl with just eval here, but it feels wrong.
The text was updated successfully, but these errors were encountered:
dblock
changed the title
How can I pump code through Ripl?
How can I pump commands through Ripl?
Jan 11, 2019
I'm building a command line client for the Strava API, https://github.com/dblock/strava-ruby-cli.
Ripl comes in handy and I could easily throw in
strava console
that let me delegate anything from my client and do things likeathlete.name
.I also would like to be able to just pass these commands on the command line and let Ripl evaluate them for me, without a prompt. How do I do that?
I can do this without ripl with just
eval
here, but it feels wrong.The text was updated successfully, but these errors were encountered: