Sha256: 7aadd477a51912de9ff3e850852580412964a1af4c29afc4b56594ca4e92a5d5

Contents?: true

Size: 410 Bytes

Versions: 8

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add console script."

        on "--[no-]console"

        default { Container[:settings].build_console }

        def call(boolean) = settings.build_console = 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/console.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/console.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/console.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/console.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/console.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/console.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/console.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/console.rb