Sha256: 005df2875fadc60899b6a009b4424ec3f69134986a448d1bc8367696970b8696

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Git flag.
      class Git < Sod::Action
        include Import[:input]

        using ::Refinements::Structs

        description "Add Git repository."

        on "--[no-]git"

        default { Container[:configuration].build_git }

        def call(value = default) = input.merge!(build_git: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-5.1.0 lib/rubysmith/cli/actions/git.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/git.rb