Sha256: dba43b8204f3ac7052cab21fdeddfc3cf71ddf3b9568b56b7403a95e18157569

Contents?: true

Size: 786 Bytes

Versions: 4

Compression:

Stored size: 786 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true
module ProxyPacRb
  # Commandline parsing
  module Cli
    # Run command
    class Runner < Thor
      map '-v' => :version
      map '--version' => :version

      class_option :debug_mode, type: :boolean, default: false, desc: 'Enable debug mode'

      desc 'find', 'Find something'
      subcommand 'find', Find

      desc 'compress', 'Compress something'
      subcommand 'compress', Compress

      desc 'init', 'Init something'
      subcommand 'init', Init

      desc 'show', 'Show something'
      subcommand 'show', Show

      desc 'lint', 'Lint something'
      subcommand 'lint', Lint

      desc 'version', 'version', hide: true
      def version
        invoke 'proxy_pac_rb:cli:show:version'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
proxy_pac_rb-3.0.0 lib/proxy_pac_rb/cli/runner.rb
proxy_pac_rb-2.1.0 lib/proxy_pac_rb/cli/runner.rb
proxy_pac_rb-2.0.0 lib/proxy_pac_rb/cli/runner.rb
proxy_pac_rb-1.0.0 lib/proxy_pac_rb/cli/runner.rb