@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
16 lines • 584 B
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { SemanticVersion } from '../../../business/utils/semantic-version.js';
export class KindVersion {
_version;
constructor(response) {
// extract the version from the response string
// expected response looks like "kind v0.27.0 go1.24.0 darwin/arm64"
const match = response.match(/v(\d+\.\d+\.\d+)/);
const version = match ? match[1] : null;
this._version = new SemanticVersion(version);
}
getVersion() {
return this._version;
}
}
//# sourceMappingURL=kind-version.js.map