addons/isl/src/operations/CommitCloudSyncOperation.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 CommitCloudSyncOperation extends Operation {
b69ab3111 static opName = 'CommitCloudSync';
b69ab3112
b69ab3113 constructor(private full = false) {
b69ab3114 super('CommitCloudSyncOperation');
b69ab3115 }
b69ab3116
b69ab3117 getArgs() {
b69ab3118 const args = ['cloud', 'sync'];
b69ab3119 if (this.full) {
b69ab3120 args.push('--full');
b69ab3121 }
b69ab3122 return args;
b69ab3123 }
b69ab3124}