Sha256: 8f6cd3419750e187a6f8b6aff4cb94b5b01a817f3ae0830e834984ccde067f74

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

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

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

          using Versionaire::Cast

          description "Set version."

          ancillary "Calculated from commit trailers when not supplied."

          on %w[-v --version], argument: "[VERSION]"

          default { Container[:configuration].project_version }

          def call(version = nil) = input.project_version = Version(version || 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/version.rb
milestoner-17.5.0 lib/milestoner/cli/actions/build/version.rb
milestoner-17.4.0 lib/milestoner/cli/actions/build/version.rb
milestoner-17.3.0 lib/milestoner/cli/actions/build/version.rb
milestoner-17.2.0 lib/milestoner/cli/actions/build/version.rb
milestoner-17.1.0 lib/milestoner/cli/actions/build/version.rb