@whook/whook
Version:
Build strong and efficient REST web services.
33 lines (32 loc) • 1.18 kB
TypeScript
import initGetOpenAPI from '../routes/getOpenAPI.js';
import { type LogService } from 'common-services';
import { type WhookCommandHandler, type WhookCommandDefinition } from '../types/commands.js';
export declare const definition: {
readonly name: "generateOpenAPISchema";
readonly description: "Write openAPI schema to stdout";
readonly example: "whook generateOpenAPISchema";
readonly arguments: [{
readonly name: "pretty";
readonly description: "Option to prettify output";
readonly schema: {
readonly type: "boolean";
readonly default: true;
};
}, {
readonly name: "authenticated";
readonly description: "Option to get the private routes too";
readonly schema: {
readonly type: "boolean";
readonly default: true;
};
}];
};
declare const _default: import("knifecycle").ServiceInitializer<{
getOpenAPI: Awaited<ReturnType<typeof initGetOpenAPI>>;
outstream: NodeJS.WritableStream;
log: LogService;
}, WhookCommandHandler<{
pretty?: boolean;
authenticated?: boolean;
}, WhookCommandDefinition>>;
export default _default;