Sha256: 9ab4117f34483b2a2153e8c38f6911dcbdcccbb8cef6dae596512b636f9800a3

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Git repository."

        on "--[no-]git"

        default { Container[:configuration].build_git }

        def call(value = default) = input.build_git = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/git.rb