happy-coders/fun-cli

View on GitHub
src/lib/commands/delete.command.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import { CommanderStatic } from 'commander';

import { AbstractCommand } from './abstract.command';

export class DeleteCommand extends AbstractCommand {
  public load(program: CommanderStatic): void {
    program
      .command('delete <project-alias>')
      .allowUnknownOption(false)
      .description('Removes a probable not fun project.')
      .usage('<project-alias>')
      .action(this.action.setup());
  }
}