Sha256: 4bff1ca6cac54b2a248bcc4f6c420183bb98365f9dbf3fde012e3e6f5543dbaa

Contents?: true

Size: 1.1 KB

Versions: 13

Compression:

Stored size: 1.1 KB

Contents

require 'cri'
require '3scale_toolbox/base_command'
require '3scale_toolbox/commands/service_command/list_command'
require '3scale_toolbox/commands/service_command/show_command'
require '3scale_toolbox/commands/service_command/delete_command'
require '3scale_toolbox/commands/service_command/create_command'
require '3scale_toolbox/commands/service_command/apply_command'
require '3scale_toolbox/commands/service_command/copy_command'

module ThreeScaleToolbox
  module Commands
    module ServiceCommand
      include ThreeScaleToolbox::Command

      def self.command
        Cri::Command.define do
          name        'service'
          usage       'service <sub-command> [options]'
          summary     'services super command'
          description 'Manage your services'

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

      add_subcommand(ListSubcommand)
      add_subcommand(ShowSubcommand)
      add_subcommand(DeleteSubcommand)
      add_subcommand(CreateSubcommand)
      add_subcommand(ApplySubcommand)
      add_subcommand(CopySubcommand)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
3scale_toolbox-1.0.1 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-1.0.0 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.20.0 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.19.3 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.19.2 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.19.1 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.19.0 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.18.3 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.18.2 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.18.0 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.17.1 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.17.0 lib/3scale_toolbox/commands/service_command.rb
3scale_toolbox-0.16.0 lib/3scale_toolbox/commands/service_command.rb