Removed debugging var_dump instances, bug fix src when no src is passed on to the cli

This commit is contained in:
Netkas 2022-10-20 14:21:23 -04:00
parent f0b2c1280f
commit a7f7c1bdfd
4 changed files with 4 additions and 11 deletions

View file

@ -63,6 +63,10 @@
Console::outError('The selected source directory \'' . $full_path . '\' was not found or is not a directory', true, 1);
}
}
else
{
$real_src = getcwd() . DIRECTORY_SEPARATOR . 'src';
}
// Remove basename from real_src
$real_src = \ncc\Utilities\Functions::removeBasename($real_src, $current_directory);

View file

@ -38,6 +38,5 @@
$file_handler = fopen($this->PackagePath, 'rb');
$header = fread($file_handler, 14);
var_dump($header);
}
}

View file

@ -113,9 +113,6 @@
$Component = new Package\Component();
$Component->Name = $item->getPath();
$this->package->Components[] = $Component;
var_dump($item->getPath());
var_dump($item);
}
if(count($this->package->Components) > 0)
@ -145,8 +142,6 @@
$Resource->Name = $item->getPath();
$this->package->Resources[] = $Resource;
var_dump($item->getPath());
var_dump($item);
}
if(count($this->package->Resources) > 0)
@ -157,9 +152,6 @@
{
Console::out('No resources found');
}
var_dump($this->package);
}
public function build(array $options, string $src)

View file

@ -205,8 +205,6 @@
$basename .= DIRECTORY_SEPARATOR;
}
var_dump($basename);
// If the path is "/etc/foo/text.txt" and the basename is "/etc" then the returned path will be "foo/test.txt"
return str_replace($basename, (string)null, $path);
}