UNPKG

@modyo/cli

Version:

Modyo CLI Command line to expose local development tools

32 lines (31 loc) 1.49 kB
import { Command } from '@oclif/core'; export default class Get extends Command { static readonly summary = "Pull a widget from our catalog into a new directory"; static readonly description = "In general, the `get` command is used to obtain a boilerplate widget."; static readonly examples: (string | { description: string; command: string; })[]; static readonly flags: { force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; help: import("@oclif/core/lib/interfaces").BooleanFlag<void>; organization: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; }; static readonly args: { name: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>; directory: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>; }; run(): Promise<void>; /** * Handles errors thrown during command execution. * * This method is invoked when the `run` method (or other lifecycle hooks) * throw an error. It normalizes non-zero exit {@link Errors.CLIError} * instances by re-emitting them through {@link this.error}, which controls * the process exit code and message formatting, and then delegates all * other errors to the base implementation. * * @param error The error thrown during command execution. */ catch(error: any): Promise<any>; }