api
Version:
Magical SDK generation from an OpenAPI definition 🪄
18 lines • 901 B
TypeScript
export type Route = 'codegen' | 'restless';
/**
* Determine whether an invocation should be dispatched to the separately published Restless CLI
* (`restless`) or handled by our own Commander program (`codegen`).
*
* @param args CLI arguments — `process.argv` minus the Node binary and the script path.
*/
export declare function classifyInvocation(args: string[]): Route;
/**
* Re-run the invocation against the Restless CLI (published on npm as `restless`) in a child
* process, forwarding its exit code and any termination signals. The Restless CLI is intentionally
* **not** a dependency of this package: `npx -y` fetches (and caches) it on demand, keeping the two
* fully decoupled.
*
* @param args CLI arguments — `process.argv` minus the Node binary and the script path.
*/
export declare function dispatchToRestlessCli(args: string[]): void;
//# sourceMappingURL=router.d.ts.map