Sha256: 0bd16a0a97690b7a5535ead2290d623eaa3a8b2794841a1a145f2cf603945c22

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add GitHub templates."

        on "--[no-]git_hub"

        default { Container[:settings].build_git_hub }

        def call(boolean) = settings.build_git_hub = boolean
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-7.2.0 lib/rubysmith/cli/actions/git_hub.rb