@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
20 lines • 766 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
export class GetNodesResponse {
_rawOutput;
_nodes = [];
constructor() {
// eslint-disable-next-line prefer-rest-params
this._rawOutput = [...arguments].join('\n');
// Check if the output indicates no nodes were found
// If the output doesn't contain nodes, leave _nodes empty
const hasNodes = !this._rawOutput.trim().startsWith('No kind nodes found for cluster');
if (hasNodes) {
// Split the output into lines and filter out any empty lines
this._nodes = this._rawOutput.split('\n').filter((line) => line.trim().length > 0);
}
}
get nodes() {
return this._nodes;
}
}
//# sourceMappingURL=get-nodes-response.js.map