Sha256: dcc58c0e787d5986e429239419b0f611bced856f1d653a0359da4fa51c90f94c

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Milestoner
  module CLI
    module Actions
      module Build
        # Handles build label.
        class Label < Sod::Action
          include Import[:input]

          description "Set label."

          on %w[-l --label], argument: "[TEXT]"

          default { Container[:configuration].project_label }

          def call(label = nil) = input.project_label = label || default
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
milestoner-17.11.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.10.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.9.0 lib/milestoner/cli/actions/build/label.rb