lib/pragmater/cli/actions/root.rb in pragmater-13.0.1 vs lib/pragmater/cli/actions/root.rb in pragmater-13.0.2

- old
+ new

@@ -1,25 +1,22 @@ # frozen_string_literal: true -require "refinements/structs" require "sod" module Pragmater module CLI module Actions # Stores root path. class Root < Sod::Action include Import[:input] - using Refinements::Structs - description "Set root directory." on %w[-r --root], argument: "[PATH]" default { Container[:configuration].root_dir } - def call(path = default) = input.merge! root_dir: Pathname(path) + def call(path = nil) = input.root_dir = Pathname(path || default) end end end end