add Delete Remote command
Dependencies
- [2]
GPTHUH3NAdd commands for unrecording changes - [3]
HVVRC2GNAdd command to apply all outstanding changes from one channel to another - [4]
BIEL6Z5JUpdate resource groups to use custom interface - [5]
5ISTB4TWAdd commands to copy the hash and message of changes in the log - [6]
6H4B4UJQAdd commands to open repo and global pijul configuration files - [7]
64J6B76FAdd command to rename channels - [8]
6ONRFFRGFirst pass of file decorations - [9]
GNQD74OZAdd pijul.openChange command and text document provider for pijul-change scheme - [10]
MO3G3S2VCleanup commands available in the command palette - [11]
L44OILGKAdd reset command to resource state context menu - [12]
ILH3GIVTAdd command centre and refresh/init commands - [13]
B4SKYP3YAdd repository model and add steps to initialize it - [*]
ZGMIJNFVCreate pijul.ts for executing commands using the Pijul CLI - [*]
NCBEWRYEInitialize Repository - [*]
5ZDRHVXDAdd command to fork a new channel
Change contents
- replacement in src/repository.ts at line 3
import { IUnrecordOptions, PijulChange, PijulChannel, Repository as BaseRepository } from './pijul';import { IUnrecordOptions, PijulChange, PijulChannel, PijulRemote, Repository as BaseRepository } from './pijul'; - edit in src/repository.ts at line 361
}}/*** Delete a remote* @param targetRemote The remote that will be deleted*/async deleteRemote (targetRemote?: PijulRemote): Promise<void> {if (!targetRemote) {const items = (await this.repository.getRemotes()).map(c => ({label: c.url,description: c.remoteid,value: c}));const pick = await window.showQuickPick(items, { placeHolder: 'Remote url', ignoreFocusOut: true });targetRemote = pick?.value; - edit in src/repository.ts at line 378
if (targetRemote) {await this.repository.deleteRemote(targetRemote);} - edit in src/pijul.ts at line 526
/*** Delete a remote of this repository with `pijul remote delete`*/async deleteRemote (targetRemote: PijulRemote): Promise<void> {await this.pijul.exec(this.repositoryRoot, ['remote', 'delete', targetRemote.remoteid]);} - replacement in src/commands.ts at line 4
import { Pijul, PijulChange, PijulChannel } from './pijul';import { Pijul, PijulChange, PijulChannel, PijulRemote } from './pijul'; - edit in src/commands.ts at line 369
* Delete a remote* @param repository The repository that contains the remote* @param targetRemote The remote to be deleted*/@command('pijul.deleteRemote', { repository: true })async deleteRemote (repository: Repository, targetRemote?: PijulRemote): Promise<void> {await repository.deleteRemote(targetRemote);await repository.refreshStatus();}/** - edit in package.json at line 153[3.1085][17.1258]
},{"command": "pijul.deleteRemote","title": "Delete Remote","category": "Pijul","icon": "$(remove)" - edit in package.json at line 488
},{"command": "pijul.deleteRemote","when": "view == pijul.views.remotes && viewItem == pijulRemote","group": "inline"