Sha256: dcde14282881ac5aa40c5d9a39c850c9b23ebbeed52335dac609ee8ece07f0c3

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Milestoner
  module CLI
    module Actions
      module Build
        # Handles build output format.
        class Format < Sod::Action
          include Import[:input]

          description "Set output format."

          on %w[-f --format], argument: "[KIND]", allow: %w[stream web]

          default { Container[:configuration].build_format }

          def call(kind = nil) = input.build_format = kind || default
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
milestoner-17.0.0 lib/milestoner/cli/actions/build/format.rb