Sha256: a72958a052e2678406307d77e6ba0127996a062d7f5831a9929d7c9c2e384459

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 Bytes

Contents

require 'cri'
require '3scale_toolbox/base_command'
require '3scale_toolbox/commands/import_command/import_csv'
require '3scale_toolbox/commands/import_command/openapi'

module ThreeScaleToolbox
  module Commands
    module ImportCommand
      include ThreeScaleToolbox::Command
      def self.command
        Cri::Command.define do
          name        'import'
          usage       'import <sub-command> [options]'
          summary     'import super command'
          description 'Importing 3scale entities'

          run do |_opts, _args, cmd|
            puts cmd.help
          end
        end
      end
      add_subcommand(ImportCsvSubcommand)
      add_subcommand(OpenAPI::OpenAPISubcommand)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
3scale_toolbox-0.8.0 lib/3scale_toolbox/commands/import_command.rb