Sha256: 66e7c31e16b0a646e6637fd537929032917c30ac186ddc6edef11e252f3ecbaf

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

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"
require "run_loop/cli/codesign"
require "run_loop/cli/tcc"

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

      desc "codesign", "Tools for interacting with codesign"
      subcommand "codesign", RunLoop::CLI::Codesign

      desc "tcc", "Tools for interacting with simulator privacy settings"
      subcommand "tcc", RunLoop::CLI::TCC

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
run_loop_tcc-2.1.6 lib/run_loop/cli/cli.rb
run_loop_tcc-2.1.5 lib/run_loop/cli/cli.rb
run_loop_tcc-2.1.4 lib/run_loop/cli/cli.rb
run_loop_tcc-2.1.3 lib/run_loop/cli/cli.rb