Sha256: c5a7b317f1d23048f901f5a4322e4fe10c7fa4e08045c2f4483cc652f1da15a9

Contents?: true

Size: 417 Bytes

Versions: 8

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add license documentation."

        on "--[no-]license"

        default { Container[:settings].build_license }

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