class DeltaTest::CLI

Constants

COMMANDS

Public Class Methods

new(args) click to toggle source
# File lib/delta_test/cli.rb, line 13
def initialize(args)
  @args    = args.dup
  @command = @args.shift
end

Public Instance Methods

run() click to toggle source

Run cli

# File lib/delta_test/cli.rb, line 31
def run
  command_class = COMMANDS[@command] || COMMANDS['help']
  command_class.new(@args).invoke
end