Class: Foy::RubyHandler::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/foy_ruby_handler/cli.rb

Class Method Summary collapse

Class Method Details

.startObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/foy_ruby_handler/cli.rb', line 3

def self.start
  command, params = ARGV.shift, ARGV

  print case command
  when "parse"
    Foy::RubyHandler.parse(*params)
  when "version"
    Foy::RubyHandler.latest_version_for(*params)
  end
end