// SPDX-License-Identifier: Apache-2.0
export class ClusterCreateResponse {
    _name;
    _context;
    _rawOutput;
    constructor() {
        // eslint-disable-next-line prefer-rest-params
        this._rawOutput = [...arguments].join('\n');
        // Extract cluster name
        const nameMatch = this._rawOutput.match(/Creating cluster "([^"]+)"/);
        this._name = nameMatch ? nameMatch[1] : undefined;
        // Extract kubectl context
        const contextMatch = this._rawOutput.match(/Set kubectl context to "([^"]+)"/);
        this._context = contextMatch ? contextMatch[1] : undefined;
    }
    get name() {
        return this._name;
    }
    get context() {
        return this._context;
    }
}
//# sourceMappingURL=cluster-create-response.js.map