lib/tocer/cli/commands/upsert.rb in tocer-17.5.0 vs lib/tocer/cli/commands/upsert.rb in tocer-18.0.0
- old
+ new
@@ -1,31 +1,27 @@
# frozen_string_literal: true
-require "pathname"
-require "refinements/struct"
require "sod"
module Tocer
module CLI
module Commands
# Stores table of contents root path.
class Upsert < Sod::Command
- include Import[:input, :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
+ super(**)
end
- def call = runner.call input
+ def call = runner.call
private
attr_reader :runner
end