Sha256: ee91cc51b7b24794c691b30c839302857cffa60b3385feea20a6c6b2507ea9d6
Contents?: true
Size: 632 Bytes
Versions: 9
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" require "sod" module Rubysmith module CLI module Actions # Publishes project. class Publish < Sod::Action include Import[:input] using ::Refinements::Structs description "Publish project." on %w[-p --publish], argument: "VERSION" def initialize(extension: Extensions::Milestoner, **) super(**) @extension = extension end def call(version) = extension.call input.merge(project_version: version) private attr_reader :extension end end end end
Version data entries
9 entries across 9 versions & 1 rubygems