@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
47 lines • 1.16 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
/**
* Options for the `kind cluster delete` command.
*/
export class ClusterDeleteOptions {
/**
* The name of the cluster.
*/
_name;
/**
* If set, sets the kubeconfig path instead of using $KUBECONFIG or $HOME/.kube/config.
*/
_kubeconfig;
constructor(name, kubeconfig) {
if (name) {
this._name = name;
}
if (kubeconfig) {
this._kubeconfig = kubeconfig;
}
}
/**
* 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._kubeconfig) {
builder.argument('kubeconfig', this._kubeconfig);
}
}
/**
* The name of the cluster.
*/
get name() {
return this._name;
}
/**
* sets kubeconfig path instead of $KUBECONFIG or $HOME/.kube/config
*/
get kubeconfig() {
return this._kubeconfig;
}
}
//# sourceMappingURL=cluster-delete-options.js.map