Sha256: 3157744152c1f6b3cb05414a2412663743cece285abcc53f10e4c8ee02d649bb

Contents?: true

Size: 509 Bytes

Versions: 6

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

require "pathname"
require "sod"
require "spek"

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

6 entries across 6 versions & 1 rubygems

Version Path
milestoner-17.6.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.5.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.4.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.3.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.2.0 lib/milestoner/cli/actions/build/label.rb
milestoner-17.1.0 lib/milestoner/cli/actions/build/label.rb