unity-builder/cli/commands/command/non-existent-command.ts

15 lines
362 B
TypeScript
Raw Normal View History

2022-04-23 21:17:35 +00:00
import { CommandInterface } from './CommandInterface.ts';
import { Options } from '../../config/options.ts';
export class NonExistentCommand implements CommandInterface {
public name: string;
constructor(name: string) {
this.name = name;
}
public async execute(options: Options) {
throw new Error(`Command ${this.name} does not exist`);
}
}