Skip to content
Snippets Groups Projects

Resolve "Add sonar integration"

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