Sha256: e59d712cc4edc490dacfac93631f3d06a2472df01c0e444d01925c9129d4d4c0

Contents?: true

Size: 594 Bytes

Versions: 11

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true
require 'thor'
require 'proxy_rb/console'
require 'proxy_rb/initializer'

# ProxyRb
module ProxyRb
  # Command line Interface
  #
  # @private
  class Cli < Thor
    def self.exit_on_failure?
      true
    end

    desc 'console', "Start proxy_rb's console"
    def console
      ProxyRb::Console.new.start
    end

    desc 'init', 'Initialize proxy_rb'
    option :test_framework, default: 'rspec', enum: %w(rspec cucumber), desc: 'Choose which test framework to use'
    def init
      ProxyRb::Initializer.new.call(options[:test_framework])
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
proxy_rb-1.0.0 lib/proxy_rb/cli.rb
proxy_rb-0.10.6 lib/proxy_rb/cli.rb
proxy_rb-0.10.5 lib/proxy_rb/cli.rb
proxy_rb-0.10.4 lib/proxy_rb/cli.rb
proxy_rb-0.10.3 lib/proxy_rb/cli.rb
proxy_rb-0.10.2 lib/proxy_rb/cli.rb
proxy_rb-0.10.1 lib/proxy_rb/cli.rb
proxy_rb-0.10.0 lib/proxy_rb/cli.rb
proxy_rb-0.9.3 lib/proxy_rb/cli.rb
proxy_rb-0.9.2 lib/proxy_rb/cli.rb
proxy_rb-0.9.1 lib/proxy_rb/cli.rb