Add basic support for task completion

This commit is contained in:
2025-06-04 18:46:20 +02:00
parent 46f09f2e13
commit 42d8f0db8b
17 changed files with 1087 additions and 68 deletions

View File

@@ -4,5 +4,13 @@ import { Config } from "../types/config";
export function loadConfig(file: string): Config {
const text = fs.readFileSync(file, 'utf-8');
return yaml.parse(text) as Config;
const cfg = yaml.parse(text) as Config;
for (const profile of Object.keys(cfg.profiles)) {
if (cfg.profiles[profile]) {
cfg.profiles[profile].name = profile;
}
}
return cfg;
}