unity-builder/src/command/command-interface.ts

12 lines
403 B
TypeScript
Raw Normal View History

import { Options } from '../config/options.ts';
import Parameters from '../model/parameters.ts';
import { Input } from '../model/index.ts';
2022-08-07 23:51:36 +00:00
export interface CommandInterface {
name: string;
execute: (options: Options) => Promise<boolean>;
2022-08-12 21:45:43 +00:00
parseParameters: (input: Input, parameters: Parameters) => Promise<Partial<Parameters>>;
2022-08-20 21:10:13 +00:00
configure(options: Options): this;
validate(): Promise<this>;
2022-08-07 23:51:36 +00:00
}