Sha256: 8cb0177ce38a8787540c2ca04bdf0a717772c34d7551ec82d00f356500600e03

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# encoding: UTF-8

module Expert
  class Cli
    class << self
      def start(argv)
        cmd = argv[0].to_sym

        if respond_to?(cmd)
          public_send(cmd, argv[1..-1])
        else
          raise "Couldn't find command '#{cmd}'"
        end
      end

      def install(args)
        Expert.environment.install
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
expert-1.0.0 lib/expert/cli.rb