Add extra output to stow

This commit is contained in:
Tim
2025-06-24 14:16:03 +02:00
parent b552933866
commit 033cb886ac
2 changed files with 10 additions and 1 deletions

View File

@ -25,7 +25,11 @@ $stowName = $parsed->get('stow-directory');
$stowPath = path($cwd, $stowName);
$config = new config($stowPath, stow::CONFIG_FILE_NAME);
if ($config->configExists()) {
line('Config file exists, using config');
}
$targetPath = $config->get('targetPath', dirname($stowPath, 2));
line(sprintf('Stowing %s to %s', $stowName, $targetPath));
if (!is_dir($stowPath)) {
lexit("Directory '$stowName' does not exist", 1);