@mintlify/cli
Version:
The Mintlify CLI
21 lines (18 loc) • 431 B
text/typescript
import { cli } from '../src/cli.js';
/**
* Programmatically set arguments and execute the CLI script
*
* @param {...string} args - Additional command arguments.
*/
export async function runCommand(...args: string[]) {
process.argv = ['node', 'cli.js', ...args];
return cli();
}
export const mockValidOpenApiDocument = {
openapi: '3.0.0',
info: {
title: 'Test API',
version: '1.0.0',
},
components: {},
};