562 B24 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 type {ShelvedChange} from '../types';
9
10import {Operation} from './Operation';
11
12export class DeleteShelveOperation extends Operation {
13 constructor(private shelvedChange: ShelvedChange) {
14 super('DeleteShelveOperation');
15 }
16
17 static opName = 'Unshelve';
18
19 getArgs() {
20 const args = ['shelve', '--delete', this.shelvedChange.name];
21 return args;
22 }
23}
24