5ZDRHVXDP5DP5E2RXRPQX4VAKVHGA5MVFYUPI2D42BAWWUGIRZNAC
7DXA53YQGL4O53NUQOTRSDL4OROAJME6X37WZZMGST6TIBTXGG3AC
64J6B76FTOAIPF2HGPIQYU523COLWHN7QOVC3XY42PHKC3GCLMZAC
B4SKYP3Y5R7UPPGLLZV7OK3SIN4TRAJ3IL6FS3T7ZFZF5HTEQARQC
ZGMIJNFVDK7R6AF56FNCA23W5KV3HVBUBPTWMLQADCEPB3MOPELQC
ILH3GIVTVMKSU5TH5ZZSPB3URX622JA2BNBOO6K7ZTF4ISYDTJLAC
6H4B4UJQ4PQULICKBZ5U55QU2BWIH2VNGRCUVYR7KDYOGC7MQU7QC
NCBEWRYEEJMJO37SHY7XCNFZYWLT5HUHCKN47UGSEY3FFWFX6QFQC
L3VOQYAF3HCAFWJ7QFULL54WUZ35B4K3MWU5YDRW7R4VTXSDWJUQC
GNQD74OZ56J2R23GVUGFP3G5KVML2KDZ4OUZK6SVLSM7HVO2WOCAC
}
/**
* Fork a new channel from the current one
* @param channelName The name of the new channel
*/
async forkChannel (channelName?: string): Promise<void> {
if (!channelName) {
channelName = await window.showInputBox({
placeHolder: 'Channel Name',
prompt: 'Please enter a name for the new Channel',
ignoreFocusOut: true
});
}
if (channelName) {
await this.repository.forkChannel(channelName);
} else {
window.showErrorMessage('Channel was not forked, no name was provided');
}
await repository.refreshStatus();
}
/**
* Fork a new channel from the current one
* @param repository The repository that contains the channel
*/
@command('pijul.forkChannel', { repository: true })
async forkChannel (repository: Repository): Promise<void> {
await repository.forkChannel();