added borg delete

This commit is contained in:
Paul Wilde 2024-08-23 14:16:13 +01:00
parent 9ea589a848
commit 360f7e502f

View file

@ -34,5 +34,8 @@ proc execute*(nc: NorgConfig, repo: Repository) =
echo "Pruning repo: ", repo.label echo "Pruning repo: ", repo.label
discard pruneRepo(nc, repo) discard pruneRepo(nc, repo)
run_actions(norg_config.actions.after_prune) run_actions(norg_config.actions.after_prune)
of DELETE:
echo "Forgetting snapshot: ", nc.args.archive
discard forgetSnapshot(nc, repo)
else: else:
discard discard