// SPDX-License-Identifier: Apache-2.0
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
};
import { inject, injectable } from 'tsyringe-neo';
import { InjectTokens } from '../core/dependency-injection/inject-tokens.js';
import { patchInject } from '../core/dependency-injection/container-helper.js';
/**
 * Return a list of Yargs command builder to be exposed through CLI
 * @returns an array of Yargs command builder
 */
let Commands = class Commands {
    initCommand;
    clusterCommand;
    networkCommand;
    nodeCommand;
    relayCommand;
    accountCommand;
    mirrorNodeCommand;
    explorerCommand;
    deploymentCommand;
    blockNodeCommand;
    quickStartCommand;
    constructor(initCommand, clusterCommand, networkCommand, nodeCommand, relayCommand, accountCommand, mirrorNodeCommand, explorerCommand, deploymentCommand, blockNodeCommand, quickStartCommand) {
        this.initCommand = initCommand;
        this.clusterCommand = clusterCommand;
        this.networkCommand = networkCommand;
        this.nodeCommand = nodeCommand;
        this.relayCommand = relayCommand;
        this.accountCommand = accountCommand;
        this.mirrorNodeCommand = mirrorNodeCommand;
        this.explorerCommand = explorerCommand;
        this.deploymentCommand = deploymentCommand;
        this.blockNodeCommand = blockNodeCommand;
        this.quickStartCommand = quickStartCommand;
        this.initCommand = patchInject(initCommand, InjectTokens.InitCommand, this.constructor.name);
        this.clusterCommand = patchInject(clusterCommand, InjectTokens.ClusterCommand, this.constructor.name);
        this.networkCommand = patchInject(networkCommand, InjectTokens.NetworkCommand, this.constructor.name);
        this.nodeCommand = patchInject(nodeCommand, InjectTokens.NodeCommand, this.constructor.name);
        this.relayCommand = patchInject(relayCommand, InjectTokens.RelayCommand, this.constructor.name);
        this.accountCommand = patchInject(accountCommand, InjectTokens.AccountCommand, this.constructor.name);
        this.mirrorNodeCommand = patchInject(mirrorNodeCommand, InjectTokens.MirrorNodeCommand, this.constructor.name);
        this.explorerCommand = patchInject(explorerCommand, InjectTokens.ExplorerCommand, this.constructor.name);
        this.deploymentCommand = patchInject(deploymentCommand, InjectTokens.DeploymentCommand, this.constructor.name);
        this.blockNodeCommand = patchInject(blockNodeCommand, InjectTokens.BlockNodeCommand, this.constructor.name);
        this.quickStartCommand = patchInject(quickStartCommand, InjectTokens.QuickStartCommand, this.constructor.name);
    }
    getCommandDefinitions() {
        return [
            this.initCommand.getCommandDefinition(),
            this.accountCommand.getCommandDefinition(),
            this.clusterCommand.getCommandDefinition(),
            this.networkCommand.getCommandDefinition(),
            this.nodeCommand.getCommandDefinition(),
            this.relayCommand.getCommandDefinition(),
            this.mirrorNodeCommand.getCommandDefinition(),
            this.explorerCommand.getCommandDefinition(),
            this.deploymentCommand.getCommandDefinition(),
            this.blockNodeCommand.getCommandDefinition(),
            this.quickStartCommand.getCommandDefinition(),
        ];
    }
};
Commands = __decorate([
    injectable(),
    __param(0, inject(InjectTokens.InitCommand)),
    __param(1, inject(InjectTokens.ClusterCommand)),
    __param(2, inject(InjectTokens.NetworkCommand)),
    __param(3, inject(InjectTokens.NodeCommand)),
    __param(4, inject(InjectTokens.RelayCommand)),
    __param(5, inject(InjectTokens.AccountCommand)),
    __param(6, inject(InjectTokens.MirrorNodeCommand)),
    __param(7, inject(InjectTokens.ExplorerCommand)),
    __param(8, inject(InjectTokens.DeploymentCommand)),
    __param(9, inject(InjectTokens.BlockNodeCommand)),
    __param(10, inject(InjectTokens.QuickStartCommand)),
    __metadata("design:paramtypes", [Function, Function, Function, Function, Function, Function, Function, Function, Function, Function, Object])
], Commands);
export { Commands };
//# sourceMappingURL=commands.js.map