feat: add configuration file strategy

This commit is contained in:
2026-03-26 18:52:34 +01:00
parent b54a94c6d3
commit 9c385191e2
4 changed files with 243 additions and 26 deletions

View File

@@ -10,4 +10,27 @@ export interface CliOptions {
dryRun?: boolean;
selectEndpoints?: boolean;
skipLint?: boolean;
config?: string;
initConfig?: string | boolean;
}
/**
* Per-tag configuration inside the generation config file.
*/
export interface TagConfig {
baseUrl: string;
endpoints: string[];
}
/**
* JSON configuration file schema.
* Allows full non-interactive control of the generation process.
*/
export interface GenerationConfig {
input: string;
output: string;
templates?: string;
skipInstall?: boolean;
skipLint?: boolean;
tags: Record<string, TagConfig>;
}