2024-08-23 11:30:36 +02:00
|
|
|
import ../model/config_type
|
|
|
|
|
|
|
|
import execute
|
|
|
|
|
|
|
|
|
|
|
|
proc pruneRepo*(nc: NorgConfig, repo: Repository): int =
|
2024-08-27 20:03:56 +02:00
|
|
|
var cmd = genPruneCommand(repo = repo.path, further_args = nc.args.further_args, nc.maintenance)
|
2024-08-23 11:30:36 +02:00
|
|
|
return run cmd
|
2024-08-23 15:12:59 +02:00
|
|
|
|
|
|
|
proc forgetSnapshot*(nc: NorgConfig, repo: Repository): int =
|
2024-08-27 20:27:36 +02:00
|
|
|
var cmd = genForgetCommand(repo = repo.path, archive = nc.args.archive, further_args = nc.args.further_args)
|
2024-08-23 15:12:59 +02:00
|
|
|
return run cmd
|