Sha256: 217432066bcf5e511872d4a98bd4ea139e4a484537030804c47cc051868d6e68
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" require "sod" module Tocer module CLI module Actions # Stores table of contents root path. class Root < Sod::Action include Import[:inputs] using Refinements::Structs description "Set root directory." on %w[-r --root], argument: "[PATH]" default { Container[:configuration].root_dir } def call(path = default) = inputs.merge! root_dir: Pathname(path) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tocer-16.0.0 | lib/tocer/cli/actions/root.rb |