}
}
/**
* Opens the repository's configuration file for editing
* @param repository The repository which will have its config open.
*/
@command('pijul.editRepoConfiguration', { repository: true })
async editRepoConfiguration (repository: Repository): Promise<void> {
await commands.executeCommand('vscode.open', Uri.file(path.join(repository.root.path, '.pijul', 'config')));
}
/**
* Opens the global Pijul configuration file for editing
*/
@command('pijul.editGlobalConfiguration')
async editGlobalConfiguration (): Promise<void> {
switch (os.platform()) {
case 'darwin':
await commands.executeCommand('vscode.open', Uri.file(path.join(os.homedir(), '.pijulconfig')));
break;
default:
await commands.executeCommand('vscode.open', Uri.file(path.join(os.homedir(), '.config', 'pijul', 'config.toml')));
break;