Sha256: ed6b836690a71f33b032c1ce184a2c9693d52da15c10ce4394f111a0d835683e

Contents?: true

Size: 1.05 KB

Versions: 17

Compression:

Stored size: 1.05 KB

Contents

module ThreeScaleToolbox
  module Commands
    module ThreeScaleCommand
      include ThreeScaleToolbox::Command

      def self.command
        Cri::Command.define do
          name        '3scale'
          usage       '3scale <sub-command> [options]'
          summary     '3scale toolbox'
          description '3scale toolbox to manage your API from the terminal.'
          option :c, 'config-file', '3scale toolbox configuration file',
                 argument: :required, default: ThreeScaleToolbox.default_config_file
          flag :v, :version, 'Prints the version of this command' do
            puts ThreeScaleToolbox::VERSION
            exit 0
          end
          flag :k, :insecure, 'Proceed and operate even for server connections otherwise considered insecure'
          flag nil, :verbose, 'Verbose mode'
          flag :h, :help, 'show help for this command' do |_, cmd|
            puts cmd.help
            exit 0
          end

          run do |_opts, _args, cmd|
            puts cmd.help
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
3scale_toolbox-0.19.3 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.17.1 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.16.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.15.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.14.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.13.0 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.12.4 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.12.3 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.12.2 lib/3scale_toolbox/commands/3scale_command.rb
3scale_toolbox-0.11.0 lib/3scale_toolbox/commands/3scale_command.rb