Sha256: da3b0e07eed36fca30139b7426a9d51a8cf81465ad5db9747bf2b202ca617e28
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true require "sod" module Tocer module CLI module Actions # Stores table of contents 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 = nil) = settings.root_dir = Pathname(path || default) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tocer-18.1.0 | lib/tocer/cli/actions/root.rb |
tocer-18.0.0 | lib/tocer/cli/actions/root.rb |