import ../model/config_type import ../utils/actions proc initRepo*(nc: NorgConfig, repo: Repository): int = echo "Not Yet Implemented" discard proc createBackup*(nc: NorgConfig, repo: Repository): int = echo "Not Yet Implemented" discard proc listArchives*(nc: NorgConfig, repo: Repository): int = echo "Not Yet Implemented" discard proc mountArchive*(nc: NorgConfig, repo: Repository): int = echo "Not Yet Implemented" discard proc unmountArchive*(nc: NorgConfig): int = echo "Not Yet Implemented" discard proc extractArchive*(nc: NorgConfig, repo: Repository): int = echo "Not Yet Implemented" discard proc execute*(nc: NorgConfig, repo: Repository) = case nc.args.command of INIT: discard initRepo(nc, repo) of CREATE: run_actions(norg_config.actions.before_backup) discard createBackup(nc, repo) run_actions(norg_config.actions.after_backup) of LIST: discard listArchives(nc, repo) of MOUNT: discard mountArchive(nc, repo) of UMOUNT: discard unmountArchive(nc) of EXTRACT: run_actions(norg_config.actions.before_extract) discard extractArchive(nc, repo) run_actions(norg_config.actions.after_extract) else: discard