Sha256: bf16215792a7ff825046bac70aa7e257c30901b4b9c718a474351d1da04177b2

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add command line interface."

        on "--[no-]cli"

        default { Container[:settings].build_cli }

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemsmith-22.1.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.0.0 lib/gemsmith/cli/actions/cli.rb