Rewrite config to be seperate from path

This commit is contained in:
Tim
2025-05-18 23:52:22 +02:00
parent 15bd1c4031
commit 0fcbd87083
2 changed files with 20 additions and 9 deletions

View File

@ -6,7 +6,7 @@ require_once __DIR__ . '/../functions.php';
require_once __DIR__ . '/../snips.php';
require_once __DIR__ . '/../config.php';
$config = new config('snips');
$config = new homeConfig('snips');
$argvParser = new argvParser(['f' => 'File', 'a' => 'Api key', 's' => 'Shortcut'], ['c' => 'Command', 'id' => 'Snip id']);
$parsed = $argvParser->parseArgv($argv);
if ($parsed === false) {