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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ program
|
|||
.option('--port <port>', 'Port to listen on for SSE transport.')
|
||||
.option('--host <host>', 'Host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.')
|
||||
.option('--vision', 'Run server that uses screenshots (Aria snapshots are used by default)')
|
||||
.option('--output-dir <path>', 'Path to the directory for output files.')
|
||||
.option('--config <path>', 'Path to the configuration file.')
|
||||
.action(async options => {
|
||||
const config = await resolveConfig(options);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue