Sha256: 2653a6bf96da3d5919e433f41394321bc61ac3f3b43c61b43476795f0067146a

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require_relative "../../system_call"

module Hanami
  module CLI
    module Commands
      module App
        # The `install` command exists to provide third parties a hook for their own installation
        # behaviour to be run as part of `hanami new`.
        #
        # Third parties should register their install commands like so:
        #
        # ```
        # if Hanami::CLI.within_hanami_app?
        #   Hanami::CLI.after "install", MyHanamiGem::CLI::Commands::Install
        # end
        # ````
        #
        # @since 2.0.0
        # @api private
        class Install < Command
          # @since 2.1.0
          # @api private
          DEFAULT_HEAD = false
          private_constant :DEFAULT_HEAD

          # @since 2.1.0
          # @api private
          desc "Install Hanami third-party plugins"

          # @since 2.1.0
          # @api private
          option :head, type: :boolean, desc: "Install head deps", default: DEFAULT_HEAD

          # @since 2.0.0
          # @api private
          def call(head: DEFAULT_HEAD, **)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-cli-2.1.1 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.1.0 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.1.0.rc3 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.1.0.rc2 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.1.0.rc1 lib/hanami/cli/commands/app/install.rb