Sha256: 1f4d5154b1638d3575382726a88a53b51d0693a8c607d2da88cc1ff7c72dc9a5

Contents?: true

Size: 543 Bytes

Versions: 9

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Tocer
  module CLI
    module Commands
      # Stores table of contents root path.
      class Upsert < Sod::Command
        handle "upsert"

        description "Update/insert table of contents."

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

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

        def call = runner.call

        private

        attr_reader :runner
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tocer-19.0.0 lib/tocer/cli/commands/upsert.rb
tocer-18.7.0 lib/tocer/cli/commands/upsert.rb
tocer-18.6.0 lib/tocer/cli/commands/upsert.rb
tocer-18.5.0 lib/tocer/cli/commands/upsert.rb
tocer-18.4.0 lib/tocer/cli/commands/upsert.rb
tocer-18.3.0 lib/tocer/cli/commands/upsert.rb
tocer-18.2.0 lib/tocer/cli/commands/upsert.rb
tocer-18.1.0 lib/tocer/cli/commands/upsert.rb
tocer-18.0.0 lib/tocer/cli/commands/upsert.rb