Sha256: 8835a9e73f1614a920e8ae6d60940f93991a6c8d69f6407b5dcdadffed311127

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

require 'specimen'
require 'specimen/cli/default_command'

module Specimen
  module CLI
    class << self
      def start!(args = ARGV)
        command = args.shift

        case command
        when '--version', '-v'
          show_version
        else
          DefaultCommand.start(ARGV.dup)
        end
      end

      def show_version
        puts(Specimen::VERSION::STRING)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
specimen-0.0.1.alpha.b lib/specimen/cli.rb