Sha256: eed48bef0544f3b1b12988526a761d4b3f0f5a168992cb0fdea6004dc06d3961

Contents?: true

Size: 488 Bytes

Versions: 19

Compression:

Stored size: 488 Bytes

Contents

require "shelly/cli/main"

module Shelly
  module CLI
    class Runner < Thor::Shell::Basic
      include Helpers
      attr_accessor :args

      def initialize(args)
        super()
        @args = args
      end

      def debug?
        args.include?("--debug")
      end

      def start
        Shelly::CLI::Main.start(args)
      rescue => e
        raise e if debug?
        say_error "Unknown error, to see debug information run command with --debug"
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
shelly-0.0.37 lib/shelly/cli/runner.rb
shelly-0.0.36 lib/shelly/cli/runner.rb
shelly-0.0.34 lib/shelly/cli/runner.rb
shelly-0.0.33 lib/shelly/cli/runner.rb
shelly-0.0.32 lib/shelly/cli/runner.rb
shelly-0.0.31 lib/shelly/cli/runner.rb
shelly-0.0.30 lib/shelly/cli/runner.rb
shelly-0.0.29 lib/shelly/cli/runner.rb
shelly-0.0.28 lib/shelly/cli/runner.rb
shelly-0.0.27 lib/shelly/cli/runner.rb
shelly-0.0.26 lib/shelly/cli/runner.rb
shelly-0.0.21.pre5 lib/shelly/cli/runner.rb
shelly-0.0.25 lib/shelly/cli/runner.rb
shelly-0.0.24 lib/shelly/cli/runner.rb
shelly-0.0.23 lib/shelly/cli/runner.rb
shelly-0.0.22 lib/shelly/cli/runner.rb
shelly-0.0.21.pre3 lib/shelly/cli/runner.rb
shelly-0.0.21.pre2 lib/shelly/cli/runner.rb
shelly-0.0.21 lib/shelly/cli/runner.rb