2 Commits
Author SHA1 Message Date
sugoidogo bb3c0e5c13 remove redundant command (i misunderstood the event)
Main / release (push) Successful in 41s
2026-01-14 05:34:29 -08:00
sugoidogo e70655189c remove unused import 2026-01-14 03:41:33 -08:00
-14
View File
@@ -4,7 +4,6 @@ import { program } from "commander"
import { parseJSON, parseTOML, stringifyJSON } from "confbox"
import fs from "node:fs"
import path from "node:path"
import util from 'node:util'
import strftime from 'strftime'
import { spawnSync } from "node:child_process"
@@ -88,19 +87,6 @@ program.command('delete-snapshot-post <subvolume> <fstype> <number>')
console.log('deleted backup at '+destination)
})
program.command('delete-config-post <subvolume> <fstype>')
.description('delete metadata of deleted subvolume, retaining backups')
.action(function (subvolume, fstype) {
delete index[subvolume]
if (!config[subvolume]) {
console.log(subvolume + ' not configured for snapback')
return
}
const destination = strftime(config[subvolume])
const dirname = path.dirname(destination)
console.log('existing backups remain at '+dirname)
})
program.parse()
fs.writeFileSync(program.opts().indexFile,stringifyJSON(index), 'utf8')