@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
63 lines • 1.43 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
/**
* Options for the `kind load image-archive` command.
*/
export class LoadImageArchiveOptions {
/**
* Path to the image archive to load.
*/
_archivePath;
/**
* The name of the cluster (default "kind")
*/
_name;
/**
* comma separated list of nodes to load images into
*/
_nodes;
constructor(archivePath, name, nodes) {
if (archivePath) {
this._archivePath = archivePath;
}
if (name) {
this._name = name;
}
if (nodes) {
this._nodes = nodes;
}
}
/**
* Apply the options to the KindExecutionBuilder.
* @param builder The KindExecutionBuilder to apply options to.
*/
apply(builder) {
if (this._archivePath) {
builder.positional(this._archivePath);
}
if (this._name) {
builder.argument('name', this._name);
}
if (this._nodes) {
builder.argument('nodes', this._nodes);
}
}
/**
* The archive path.
*/
get archivePath() {
return this._archivePath;
}
/**
* The name of the cluster.
*/
get name() {
return this._name;
}
/**
* The nodes to load images into.
*/
get nodes() {
return this._nodes;
}
}
//# sourceMappingURL=load-image-archive-options.js.map