UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

46 lines 1.17 kB
// SPDX-License-Identifier: Apache-2.0 /** * Options for the `kind get nodes` command. */ export class GetNodesOptions { /** * The name of the cluster context name (default "kind") */ _name; /** * If present, list all the available nodes across all cluster contexts. * Current context is ignored even if specified with --name. */ _allClusters; constructor(name, allClusters = false) { if (name) { this._name = name; } this._allClusters = allClusters; } /** * Apply the options to the KindExecutionBuilder. * @param builder The KindExecutionBuilder to apply options to. */ apply(builder) { if (this._name) { builder.argument('name', this._name); } if (this._allClusters) { builder.flag('--all-clusters'); } } /** * The name of the cluster. */ get name() { return this._name; } /** * Whether to list all nodes across all cluster contexts. */ get allClusters() { return this._allClusters; } } //# sourceMappingURL=get-nodes-options.js.map