Sha256: 9df3c98ad0f42af9f47f97257c5ff6bfd68020bc9946a68844810d8fd5760c3c

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add GitHub templates."

        on "--[no-]git_hub"

        default { Container[:configuration].build_git_hub }

        def call(value = default) = input.build_git_hub = 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_hub.rb