feat: implement export tasks (#1260)

This commit is contained in:
Ralph Khreish
2025-10-06 16:03:56 +02:00
committed by GitHub
parent db6f405f23
commit 7265a6cf53
22 changed files with 1333 additions and 148 deletions

View File

@@ -694,16 +694,7 @@ export class ContextCommand extends Command {
}
/**
* Static method to register this command on an existing program
*/
static registerOn(program: Command): Command {
const contextCommand = new ContextCommand();
program.addCommand(contextCommand);
return contextCommand;
}
/**
* Alternative registration that returns the command for chaining
* Register this command on an existing program
*/
static register(program: Command, name?: string): ContextCommand {
const contextCommand = new ContextCommand(name);