Sha256: 8855fcdc7d6ac1831956dd0b4145ee0c6391ce5b0dc45c8a2892ff6418101bb0

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add GitHub templates."

        on "--[no-]git_hub"

        default { Container[:configuration].build_git_hub }

        def call(value = default) = input.merge!(build_git_hub: 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_hub.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/git_hub.rb