# frozen_string_literal: true require "sod" module Pragmater module CLI module Actions # Stores root path. class Root < Sod::Action include Import[:settings] description "Set root directory." on %w[-r --root], argument: "[PATH]" default { Container[:settings].root_dir } def call(path = default) = settings.root_dir = Pathname(path) end end end end