Sha256: 7e3d1ad32dabb9a51fa2ebe3c9a0aa252ea72f42936ffa03d855261a15de5c10

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

Stored size: 854 Bytes

Contents

require 'thor'
require 'run_loop'
require 'run_loop/cli/errors'
require 'run_loop/cli/instruments'
require 'run_loop/cli/simctl'
require "run_loop/cli/locale"

trap 'SIGINT' do
  puts 'Trapped SIGINT - exiting'
  exit 10
end

module RunLoop

  module CLI

    class Tool < Thor
      include Thor::Actions

      def self.exit_on_failure?
        true
      end

      desc 'version', 'Prints version of the run_loop gem'
      def version
        puts RunLoop::VERSION
      end

      desc 'instruments', "Interact with Xcode's command-line instruments"
      subcommand 'instruments', RunLoop::CLI::Instruments

      desc 'simctl', "Interact with Xcode's command-line simctl"
      subcommand 'simctl', RunLoop::CLI::Simctl

      desc "locale", "Tools for interacting with locales"
      subcommand "locale", RunLoop::CLI::Locale

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
run_loop-2.0.6 lib/run_loop/cli/cli.rb
run_loop-2.0.5 lib/run_loop/cli/cli.rb