happy-coders/fun-cli

View on GitHub
src/lib/core/project/tasks/abstract.task.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Project } from '../project.entity';

export type TaskName = 'open-vscode';

export abstract class Task {
  constructor(protected name: TaskName) {}

  getName() {
    return this.name;
  }

  abstract execute(project: Project): Promise<boolean>;

  abstract getLabel(): string;
}