Sha256: e01d2e2a6f0c81d052d464d06b36f0f7549bf5d8658252e792fc65f3df975d63

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

require "pathname"
require "refinements/structs"
require "sod"

module Tocer
  module CLI
    module Commands
      # Stores table of contents root path.
      class Upsert < Sod::Command
        include Import[:inputs, :kernel]

        handle "upsert"

        description "Update/insert table of contents."

        on Actions::Root
        on Actions::Label
        on Actions::Pattern

        def initialize(runner: Runner.new, **)
          super(**)
          @runner = runner
        end

        def call = runner.call inputs

        private

        attr_reader :runner
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tocer-16.0.0 lib/tocer/cli/commands/upsert.rb