Sha256: f1b59056d72886b56a696d7cc46fb200100c02c1f209b388e5da539a8c63393a

Contents?: true

Size: 411 Bytes

Versions: 8

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add readme documentation."

        on "--[no-]readme"

        default { Container[:settings].build_readme }

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