class RubyEdit::CLI
Handle the application command line parsing and the dispatch to various command objects
@api public
Constants
- Error
Error
raised by this runner
Public Instance Methods
configure(*)
click to toggle source
# File lib/ruby_edit/cli.rb, line 27 def configure(*) if options[:help] invoke :help, ['configure'] else require_relative 'commands/configure' RubyEdit::Commands::Configure.new(options).execute end end
edit(*)
click to toggle source
# File lib/ruby_edit/cli.rb, line 42 def edit(*) if options[:help] invoke :help, ['edit'] elsif options.empty? invoke :help else require_relative 'commands/edit' RubyEdit::Commands::Edit.new(options).execute end end
version()
click to toggle source
# File lib/ruby_edit/cli.rb, line 15 def version require_relative 'version' puts "v#{RubyEdit::VERSION}" end