Sha256: 497c545e3fd363411bfbbc16adb211c6480abb863402da138c313edce3b7370d

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Guard gem."

        on "--[no-]guard"

        default { Container[:settings].build_guard }

        def call(value = nil) = settings.build_guard = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-7.0.0 lib/rubysmith/cli/actions/guard.rb