@whook/whook
Version:
Build strong and efficient REST web services.
49 lines (48 loc) • 1.6 kB
TypeScript
import { type Injector, type Service } from 'knifecycle';
import { type LogService } from 'common-services';
import { type WhookCommandHandler, type WhookCommandDefinition } from '../types/commands.js';
export declare const definition: {
readonly name: "inspect";
readonly description: "A simple program that returns the result of the injected service";
readonly example: "whook config --name DEFINITIONS --query 'paths.*'";
readonly config: {
readonly promptArgs: true;
};
readonly arguments: [{
readonly name: "name";
readonly required: true;
readonly description: "Injected service name";
readonly schema: {
readonly type: "string";
};
}, {
readonly name: "query";
readonly description: "Property to pickup in the result (uses `miniquery`)";
readonly schema: {
readonly type: "string";
};
}, {
readonly name: "default";
readonly description: "Provide a default value";
readonly schema: {
readonly type: "string";
};
}, {
readonly name: "pretty";
readonly description: "Pretty JSON output";
readonly schema: {
readonly type: "boolean";
readonly default: false;
};
}];
};
declare const _default: import("knifecycle").ServiceInitializer<{
$injector: Injector<Service>;
log?: LogService;
}, WhookCommandHandler<{
name: string;
query?: string;
default?: string;
pretty?: true;
}, WhookCommandDefinition>>;
export default _default;