Sha256: a508fb45f77611c3487d5be0194325fea33ddce0af5c6ab8c7106f506d08e8e7

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add setup script."

        on "--[no-]setup"

        default { Container[:settings].build_setup }

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/setup.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/setup.rb