@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
48 lines (47 loc) • 2.15 kB
TypeScript
import { BaseCommand } from '../base.js';
import { type ArgvStruct } from '../../types/aliases.js';
import { type CommandFlags } from '../../types/flag-types.js';
import { OneShotCommand } from './one-shot.js';
import { type AccountManager } from '../../core/account-manager.js';
import { type SoloEventBus } from '../../core/events/solo-event-bus.js';
export declare class DefaultOneShotCommand extends BaseCommand implements OneShotCommand {
private readonly accountManager;
private readonly eventBus;
private static readonly SINGLE_DEPLOY_CONFIGS_NAME;
private static readonly SINGLE_DESTROY_CONFIGS_NAME;
private _isRollback;
static readonly DEPLOY_FLAGS_LIST: CommandFlags;
static readonly MULTI_DEPLOY_FLAGS_LIST: CommandFlags;
static readonly DESTROY_FLAGS_LIST: CommandFlags;
static readonly FALCON_DEPLOY_FLAGS_LIST: CommandFlags;
static readonly FALCON_DESTROY_FLAGS_LIST: CommandFlags;
static readonly INFO_FLAGS_LIST: CommandFlags;
constructor(accountManager: AccountManager, eventBus: SoloEventBus);
/**
* Concatenates a default config file with an override file, writing the result to outputFilePath.
* Later entries in the file override earlier ones, so the override values take precedence.
*/
private concatConfigFiles;
/**
* Appends non-empty config entries to the argv array as CLI flags.
* @param argv - The argument array to append to
* @param configSection - The config object to extract key-value pairs from
*/
private appendConfigToArgv;
deploy(argv: ArgvStruct): Promise<boolean>;
deployFalcon(argv: ArgvStruct): Promise<boolean>;
private performRollback;
private deployInternal;
private showOneShotUserNotes;
private showVersions;
private cacheDeploymentName;
private getOneShotOutputDirectory;
private showAccounts;
private showPortForwards;
destroy(argv: ArgvStruct): Promise<boolean>;
destroyFalcon(argv: ArgvStruct): Promise<boolean>;
private destroyInternal;
info(): Promise<boolean>;
close(): Promise<void>;
private resolveOneShotComponentVersions;
}