Sha256: 551ae04e044385e05e75c2e6270ec8d358bf3f3ac3ac3f9b1a547db85c0bbb3a

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 console flag.
      class Console < Sod::Action
        include Import[:input]

        description "Add console script."

        on "--[no-]console"

        default { Container[:configuration].build_console }

        def call(value = default) = input.build_console = 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/console.rb