Sha256: 29e904314f2787b065b9bb49301c1029d334e907a06180ee3aa1025f0d85fc83

Contents?: true

Size: 689 Bytes

Versions: 2

Compression:

Stored size: 689 Bytes

Contents

# encoding: utf-8
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 '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

2 entries across 2 versions & 1 rubygems

Version Path
proxy_pac_rb-0.4.2 lib/proxy_pac_rb/cli/runner.rb
proxy_pac_rb-0.4.0 lib/proxy_pac_rb/cli/runner.rb