message = ''' Add button to copy the apply command in log view ''' timestamp = '2024-12-30T08:15:18.302849416Z' [[authors]] key = '7iZqxJnEA6U5AEPHNmRUsdoxpQnqtr3mz6ByTHYh5J85' # Dependencies [2] VKRPQX2A5T7HMG57JQBTT2OOZ7A45DJG3CTRTZYQ3XPSDR7PNNSAC # pagination for log pages [3]+SGGLBNHONAOIFWQ7JHO7LKV36Y5B2TXVAB52TUT663TDFWJ7M6TAC # rename changes to log [4]+AZQ5EAVHABHJZRX6KBYZQWKTGYE6ODL47ANZPFPJJ47QUGXXBXDAC # [5]+DLIZNX43MQZKKEU5FPWFI6XG5OOSLIIWHY7VQMLNBUHJDDR5IVEAC # Initial change [*] SGGLBNHONAOIFWQ7JHO7LKV36Y5B2TXVAB52TUT663TDFWJ7M6TAC # rename changes to log # Hunks 1. Replacement in "log.njk":20 3.32 "UTF-8" B:BD 2.208 -> 2.208:262/2 up 2.208, new 0:275, down 2.262 -
{{log.hash}}
+
{{log.hash}}
2. Edit in "log.njk":25 3.32 "UTF-8" up 2.305, new 276:747, down 3.322 + 3. File addition: "change.njk" in "" "UTF-8" up 4.1, new 748:782 + --- + pagination: + data: changes + size: 1 + alias: change + permalink: "changes/{{change.hash}}.txt" + --- + + {{change.hash | changeContents | safe}} 4. Edit in "_includes/style.njk":25 2.496 "UTF-8" up 2.880, new 929:1050, down 2.880 + } + .confirmation { + color: green; + font-family: monospace; + margin: 0 5px; + } + .apply-btn { + margin: 5px 0; 5. File addition: "changes.js" in "_data" "UTF-8" up 5.92890, new 1051:1085 + import util from 'util' + import child_process from 'child_process' + const exec = util.promisify(child_process.exec) + + export default async () => { + const { stdout, stderr } = await exec('pijul log --output-format json') + return JSON.parse(stdout) + }