addons/isl/src/operations/CommitCloudCreateWorkspaceOperation.tsblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import {Operation} from './Operation';
b69ab319
b69ab3110export class CommitCloudCreateWorkspaceOperation extends Operation {
b69ab3111 static opName = 'CommitCloudCreateWorkspace';
b69ab3112
b69ab3113 constructor(private workspaceName: string) {
b69ab3114 super('CommitCloudCreateWorkspaceOperation');
b69ab3115 }
b69ab3116
b69ab3117 getArgs() {
b69ab3118 return ['cloud', 'switch', '--create', '-w', this.workspaceName];
b69ab3119 }
b69ab3120}