Sha256: 39a59c8db42d88f33f95d872b77eee199f51fd81722bf66b079a52967441cba0

Contents?: true

Size: 639 Bytes

Versions: 10

Compression:

Stored size: 639 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Milestoner
  module CLI
    module Actions
      module Build
        # Handles build stylesheet.
        class Stylesheet < Sod::Action
          include Import[:settings]

          description "Set stylesheet file name or relative path."

          ancillary "Only used by web format. Use false to disable."

          on %w[-s --stylesheet], argument: "[NAME]"

          default { Container[:settings].build_stylesheet }

          def call name = default
            settings.build_stylesheet = name == "false" ? false : name
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
milestoner-18.11.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.10.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.9.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.8.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.7.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.6.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.5.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.4.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.3.0 lib/milestoner/cli/actions/build/stylesheet.rb
milestoner-18.2.0 lib/milestoner/cli/actions/build/stylesheet.rb