mindnet_obsidian/src/interview/InterviewConfigLoader.ts
Lars bab84549e2
Some checks are pending
Node.js build / build (20.x) (push) Waiting to run
Node.js build / build (22.x) (push) Waiting to run
Enhance interview functionality and settings; add YAML dependency
- Introduced profile selection modal for creating notes from interview profiles.
- Added settings for interview configuration path, auto-starting interviews, and intercepting unresolved link clicks.
- Updated package files to include YAML dependency for configuration handling.
- Enhanced CSS for profile selection and interview wizard UI elements.
2026-01-16 12:27:44 +01:00

21 lines
610 B
TypeScript

import type { App } from "obsidian";
import { VocabularyLoader } from "../vocab/VocabularyLoader";
import { parseInterviewConfig, validateConfig } from "./parseInterviewConfig";
import type { InterviewConfig } from "./types";
/**
* Loader for interview config YAML files.
*/
export class InterviewConfigLoader {
/**
* Load and parse interview config from vault.
*/
static async loadConfig(
app: App,
path: string
): Promise<{ config: InterviewConfig; errors: string[] }> {
const yamlText = await VocabularyLoader.loadText(app, path);
return parseInterviewConfig(yamlText);
}
}