Sha256: 549241e81ca2c645ed532cf1ac9bc3dd16ddbe5709244f03db9bb073cf685d31

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

module Tocer
  module CLI
    module Actions
      # Stores table of contents label.
      class Label < Sod::Action
        include Import[:input]

        using Refinements::Structs

        description "Set label."

        on %w[-l --label], argument: "[TEXT]"

        default { Container[:configuration].label }

        def call(label = default) = input.merge!(label:)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tocer-16.0.1 lib/tocer/cli/actions/label.rb