Sha256: 918d14a1d4d97902883390d7695739a0d410270f03541170bd41b1790793b7f6

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

# frozen_string_literal: true

require_relative "command"
require_relative "../../../interactive_system_call"

module Hanami
  module CLI
    module Commands
      module App
        module Assets
          # @since 2.1.0
          # @api private
          class Watch < Assets::Command
            desc "Start assets watch mode"

            def initialize(config: app.config.assets, system_call: InteractiveSystemCall.new, **)
              super(config: config, system_call: system_call)
            end

            private

            # @since 2.1.0
            # @api private
            def cmd_with_args
              super +
                [
                  "--",
                  "--watch"
                ]
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanami-cli-2.1.0.beta2 lib/hanami/cli/commands/app/assets/watch.rb