Sha256: 6112e95545644dad81f2100d5ba664ca2951bc3158e59fe971cc4f023e116a03

Contents?: true

Size: 577 Bytes

Versions: 5

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

module Hanami
  module CLI
    module Commands
      module App
        module Generate
          # @since 2.2.0
          # @api private
          class Operation < Command
            argument :name, required: true, desc: "Operation name"

            example [
              %(books.add               (MyApp::Books::Add)),
              %(books.add --slice=admin (Admin::Books::Add)),
            ]

            def generator_class
              Generators::App::Operation
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-cli-2.2.1 lib/hanami/cli/commands/app/generate/operation.rb
hanami-cli-2.2.0 lib/hanami/cli/commands/app/generate/operation.rb
hanami-cli-2.2.0.rc1 lib/hanami/cli/commands/app/generate/operation.rb
hanami-cli-2.2.0.beta2 lib/hanami/cli/commands/app/generate/operation.rb
hanami-cli-2.2.0.beta1 lib/hanami/cli/commands/app/generate/operation.rb