Sha256: 81006c00e599e3b1e55d4797133b8228dafffeec68661ec6753b37df099f6f56

Contents?: true

Size: 390 Bytes

Versions: 8

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Git repository."

        on "--[no-]git"

        default { Container[:settings].build_git }

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/git.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/git.rb