Create CLI working scaffolding

This commit is contained in:
2025-01-17 16:10:04 +01:00
parent f3b68dca33
commit a270ee4ae5
10 changed files with 136 additions and 20 deletions

8
src/config/index.ts Normal file
View File

@@ -0,0 +1,8 @@
import fs from "fs";
import yaml from "yaml";
import { Config } from "../types/config";
export function loadConfig(file: string): Config {
const text = fs.readFileSync(file, 'utf-8');
return yaml.parse(text) as Config;
}