Sha256: a81eb00465c26d00f50de140d944db1f2f0c1a0bd218bccf3b6970d58be59008

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 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: :flag, 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

4 entries across 4 versions & 1 rubygems

Version Path
hanami-cli-2.2.0 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.2.0.rc1 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.2.0.beta2 lib/hanami/cli/commands/app/install.rb
hanami-cli-2.2.0.beta1 lib/hanami/cli/commands/app/install.rb