Add pijul.recordAll command
[?]
Dec 27, 2020, 10:10 PM
H3GAPFUC4TCMSLC3O4LUNQNHRANRNVIOQJRTZT4XQ3AUXFHTW4CACDependencies
- [2]
LUFSQKUVEnable support for experimental decorators - [3]
ILH3GIVTAdd command centre and refresh/init commands - [4]
ZI7ORD4PAdd iconv dependency - [5]
3N3RS66TCreate pijul output channel and configure activation events - [6]
B4SKYP3YAdd repository model and add steps to initialize it - [*]
YUVLBWV3Populate resource groups for unrecorded and untracked changes - [*]
ZGMIJNFVCreate pijul.ts for executing commands using the Pijul CLI - [*]
NCBEWRYEInitialize Repository
Change contents
- replacement in src/repository.ts at line 25
// TODO: Create resource groups// Create resource groups - edit in src/repository.ts at line 49
}/*** Record all diffs from the pristine as a new change* @param message The message for the new change*/async recordAllChanges (message: string): Promise<void> {await this.repository.recordAllChanges(message); - edit in src/pijul.ts at line 216
}/*** Record all diffs from the pristine as a new change* @param message The message for the new change*/async recordAllChanges (message: string): Promise<void> {await this._pijul.exec(this.repositoryRoot, ['record', '-a', '-m', message]); - replacement in src/commands.ts at line 107
this.refresh(this.repository);commands.executeCommand('pijul.refresh'); - replacement in src/commands.ts at line 115
* @param repository The repository to run the file in* @param repository The repository to refresh the files in - edit in src/commands.ts at line 122
/*** Create a new change with all of the currently unrecorded* changes* @param repository The repository to record in*/@command('pijul.recordAll', { repository: true })async recordAll (repository: Repository): Promise<void> {// TODO: Get message from input boxconst message = await window.showInputBox({placeHolder: 'Change Message',prompt: 'Please include a message describing what has changed',ignoreFocusOut: true});if (message) {repository.recordAllChanges(message);} else {window.showErrorMessage('Change was not recorded, no message was provided');}commands.executeCommand('pijul.refresh');} - replacement in package.json at line 36
"command": "pijul.record","title": "Record Change","command": "pijul.recordAll","title": "Record All Current Changes",