Sha256: 1bd6e204812bd1b874466d65faf3220f13f79dfa2522b59ff16498ccfe346865

Contents?: true

Size: 530 Bytes

Versions: 10

Compression:

Stored size: 530 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[:settings]

          description "Set output format."

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

          default { Container[:settings].build_format }

          def call(kind = default) = settings.build_format = kind
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
milestoner-18.11.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.10.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.9.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.8.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.7.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.6.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.5.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.4.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.3.0 lib/milestoner/cli/actions/build/format.rb
milestoner-18.2.0 lib/milestoner/cli/actions/build/format.rb