Sha256: 3a3a1c0c4e241f9101f3ba4cbd9886a5ffb971a6c1e84fab71d07f65a0eef22c

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require_relative 'exceptions'

module Rocktumbler
  # The CLI is a class responsible of handling all the command line interface
  # logic.
  class CLI
    attr_reader :opts

    def initialize()
      @opts = {}
    end

    def run(args = ARGV)
      @opts = Option.parse(args)
      Rocktumbler::Tumbler.new(@opts).tumble
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rocktumbler-0.2.2 lib/rocktumbler/cli.rb
rocktumbler-0.2.1 lib/rocktumbler/cli.rb
rocktumbler-0.2.0 lib/rocktumbler/cli.rb