Sha256: 90a7923ff02c72ef0c2e8033424263d56f78d84557ffec35af5d229a428e49a3

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 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) = settings.build_cli = value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemsmith-22.10.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.9.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.8.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.7.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.6.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.5.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.4.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.3.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-22.2.0 lib/gemsmith/cli/actions/cli.rb