You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Cincinnati Ruby Brigade
I am building a little tool to offer command line interface to manage our vmware cloud. I want a cli and a repl and chose Pry as the repl so have code like this to define the Pry commands and what they do.
Pry.config.commands = Pry::CommandSet.new do command "configure", "Create a new configuration file" do CommandConfigure.new.run end
end
So now I want to make the same command to run from a cli argument. it looks like Thor is a great solution for a cli but this would mean duplicating all the command text and help information.
Ideally, I need some way to inject a command and arguments into pry that were entered on the command line instead of in the repl.
Pseudo code.
Pry.submit(ARGV)
Anyone know how to do this?
Thanks.
Ed Sumerfield
unread,
Sep 6, 2014, 6:09:49 PM9/6/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message