Skip to content
Snippets Groups Projects

Resolve "Add sonar integration"

Closed orestis.malaspin requested to merge 5-add-sonar-integration into main
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
import { Command } from 'commander';
import { Command, CommandOptions } from 'commander';
abstract class CommanderCommand {
protected abstract commandName: string;
protected aliasNames: Array<string> = [];
protected options: CommandOptions = {};
command: Command = new Command();
registerOnCommand(parent: Command) {
this.command = parent.command(this.commandName);
this.command = parent.command(this.commandName, this.options).aliases(this.aliasNames);
this.defineCommand();
this.defineSubCommands();
Loading