537 B25 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import {Operation} from './Operation';
9
10export class CommitCloudSyncOperation extends Operation {
11 static opName = 'CommitCloudSync';
12
13 constructor(private full = false) {
14 super('CommitCloudSyncOperation');
15 }
16
17 getArgs() {
18 const args = ['cloud', 'sync'];
19 if (this.full) {
20 args.push('--full');
21 }
22 return args;
23 }
24}
25