feat(cli): set outputDir via cli options (#338)
This commit is contained in:
parent
200cf737bb
commit
5df011ad4b
4 changed files with 26 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ export type CLIOptions = {
|
|||
host?: string;
|
||||
vision?: boolean;
|
||||
config?: string;
|
||||
outputDir?: string;
|
||||
};
|
||||
|
||||
const defaultConfig: Config = {
|
||||
|
|
@ -110,6 +111,7 @@ export async function configFromCLIOptions(cliOptions: CLIOptions): Promise<Conf
|
|||
},
|
||||
capabilities: cliOptions.caps?.split(',').map((c: string) => c.trim() as ToolCapability),
|
||||
vision: !!cliOptions.vision,
|
||||
outputDir: cliOptions.outputDir,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue