Sha256: 074e019d654f9e48ecdd2a08f4a53da1fb3ce62866e118a99c606c9509fe08e7
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
# 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 = nil) = settings.root_dir = Pathname(path || default) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pragmater-15.1.0 | lib/pragmater/cli/actions/root.rb |
pragmater-15.0.0 | lib/pragmater/cli/actions/root.rb |