Sha256: 11903cceb20202986d8d8930f72c026c52ea1dbd2cd09079a52452f4affdef94
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 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 Dependencies[: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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tocer-19.1.0 | lib/tocer/cli/actions/root.rb |
tocer-19.0.0 | lib/tocer/cli/actions/root.rb |