Sha256: 7170bcbe6e1d6faeb1871616fbc27ca8549fa3af0f02e5814f03703e5e497f9e

Contents?: true

Size: 929 Bytes

Versions: 18

Compression:

Stored size: 929 Bytes

Contents

module Hanami
  # Hanami CLI
  #
  # @since 1.1.0
  class CLI
    module Commands
      # @since 1.1.0
      # @api private
      module Generate
        require "hanami/cli/commands/generate/app"
        require "hanami/cli/commands/generate/action"
        require "hanami/cli/commands/generate/mailer"
        require "hanami/cli/commands/generate/migration"
        require "hanami/cli/commands/generate/model"
        require "hanami/cli/commands/generate/secret"
      end
    end

    register "generate", aliases: ["g"] do |prefix|
      prefix.register "app",       Commands::Generate::App
      prefix.register "action",    Commands::Generate::Action
      prefix.register "mailer",    Commands::Generate::Mailer
      prefix.register "migration", Commands::Generate::Migration
      prefix.register "model",     Commands::Generate::Model
      prefix.register "secret",    Commands::Generate::Secret
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hanami-1.3.5 lib/hanami/cli/commands/generate.rb
hanami-1.3.4 lib/hanami/cli/commands/generate.rb
hanami-1.3.3 lib/hanami/cli/commands/generate.rb
hanami-1.3.2 lib/hanami/cli/commands/generate.rb
hanami-1.3.1 lib/hanami/cli/commands/generate.rb
hanami-1.3.0 lib/hanami/cli/commands/generate.rb
hanami-1.3.0.beta1 lib/hanami/cli/commands/generate.rb
hanami-1.2.0 lib/hanami/cli/commands/generate.rb
hanami-1.2.0.rc2 lib/hanami/cli/commands/generate.rb
hanami-1.2.0.rc1 lib/hanami/cli/commands/generate.rb
hanami-1.2.0.beta2 lib/hanami/cli/commands/generate.rb
hanami-1.2.0.beta1 lib/hanami/cli/commands/generate.rb
hanami-1.1.1 lib/hanami/cli/commands/generate.rb
hanami-1.1.0 lib/hanami/cli/commands/generate.rb
hanami-1.1.0.rc1 lib/hanami/cli/commands/generate.rb
hanami-1.1.0.beta3 lib/hanami/cli/commands/generate.rb
hanami-1.1.0.beta2 lib/hanami/cli/commands/generate.rb
hanami-1.1.0.beta1 lib/hanami/cli/commands/generate.rb