Sha256: e72c24e8cb56068a83983391513bba591f34db71fc55b9d9a440967195b9a471

Contents?: true

Size: 469 Bytes

Versions: 10

Compression:

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

          description "Set label."

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

          default { Container[:settings].project_label }

          def call(label = default) = settings.project_label = label
        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/label.rb
milestoner-18.10.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.9.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.8.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.7.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.6.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.5.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.4.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.3.0 lib/milestoner/cli/actions/build/label.rb
milestoner-18.2.0 lib/milestoner/cli/actions/build/label.rb