Sha256: 1654d3a6cff32eb617cdef42935fb9c837af9442d12f159a66ee5e8cf55f933b

Contents?: true

Size: 398 Bytes

Versions: 18

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add command line interface."

        on "--[no-]cli"

        default { Container[:configuration].build_cli }

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gemsmith-21.10.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.9.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.6.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.5.1 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.5.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.4.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.3.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.2.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.1.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-21.0.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.7.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.6.1 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.6.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.5.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.4.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.3.0 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.2.1 lib/gemsmith/cli/actions/cli.rb
gemsmith-20.2.0 lib/gemsmith/cli/actions/cli.rb