{"version":3,"sources":["../../src/base/BaseCommand.ts"],"names":["init_cjs_shims","BaseCommand","_Command","_executableFile","_name","_executableHandler","__publicField","parent","_helpConfiguration","app","Application","in","out","log"],"mappings":";;;;;;AAAAA,gCAAA,EAAA;AAWO,IAAMC,YAAAA,GAAN,MAAMA,YAAAA,SAAoBC,iBAAAA,CAAAA;AAA1B,EAAA,WAAA,GAAA;;AAKOC;;AACAC,IAAAA,+BAAAA,CAAAA,IAAAA,EAAAA,OAAAA,CAAAA;AACAC,IAA8BC,+BAAA,CAAA,IAAA,EAAA,oBAAA,EAAA,KAAA,CAAA;AAEjCC;;AACAC,IAAAA,+BAAAA,CAAAA,IAAAA,EAAAA,oBAAAA,EAAwC,EAAC,CAAA;;AAmBhD,EAAA,IAAWC,GAAW,GAAA;AAAC,IAAA,OAAOR,YAAYS,CAAAA,WAAAA;AAAY;AACtD,EAAA,IAAWC,EAAY,GAAA;AAAC,IAAA,OAAO,KAAKF,GAAIE,CAAAA,EAAAA;AAAG;AAC3C,EAAA,IAAWC,GAAc,GAAA;AAAC,IAAA,OAAO,KAAKH,GAAIG,CAAAA,GAAAA;AAAI;AAC9C,EAAA,IAAWC,GAAc,GAAA;AAAC,IAAA,OAAO,KAAKJ,GAAII,CAAAA,GAAAA;AAAI;AAKlD,CAAA;AArCiCX,wBAAAA,CAAAA,YAAAA,EAAAA,aAAAA,CAAAA;AA4B7BI,+BAAA,CA5BSL,YA4BKS,EAAAA,aAAAA,CAAAA;AA5BX,IAAMT,WAAN,GAAA","file":"chunk-ZAX73E4Q.cjs","sourcesContent":["// @ts-ignore\nimport { Argument, Command as _Command, ParseOptions } from 'commander';\nimport type { Debug } from 'debug';\nimport type { Logger } from 'pino';\nimport { App } from '../Application.js';\nimport type { Input } from '../helpers/Input.js';\nimport type { Output } from '../helpers/Output.js';\nimport { Command } from './Command.js';\nimport { HelpConfiguration } from './Help.js';\nimport type { Option } from './Option.js';\n\nexport class BaseCommand extends _Command {\n\n    declare emit: (event: string | symbol, ...args: any[]) => boolean;\n    declare listen: (event: string | symbol, listener: (...args: any[]) => void) => this;\n    //@formatter:off\n    protected _executableFile?: string;\n    protected _name?: string;\n    protected _executableHandler: boolean = false;\n    //@ts-ignore\n    public parent: Command;\n    public _helpConfiguration: HelpConfiguration = {};\n    //@ts-ignore\n    declare commands: Command[];\n    declare options: Option[];\n    declare registeredArguments: Argument[];\n    declare _allowUnknownOption?:any;\n    declare _allowExcessArguments?:any;\n    declare _args?:any; // deprecated old name\n    declare _scriptPath?: any;\n    declare _optionValues?: any;\n    declare _optionValueSources?: any;\n    declare _storeOptionsAsProperties?: any;\n    declare _actionHandler?: any;\n    declare _executableDir?: any;\n    declare _defaultCommandName?: any;\n    declare _exitCallback?: any;\n    declare _aliases?: any;\n    declare _savedState?: any;\n    public static Application?: App;\n    public get app(): App {return BaseCommand.Application;};\n    public get in(): Input {return this.app.in;}\n    public get out(): Output {return this.app.out;}\n    public get log(): Logger {return this.app.log;}\n    // noinspection JSUnusedGlobalSymbols\n    declare protected _debug?: Debug;\n    //@formatter:on\n\n}\n"]}