import ../model/config_type import execute import strformat proc mountSnapshot*(nc: NorgConfig, repo: Repository): int = #let further_args = nc.args.further_args[1..^1] let further_args = nc.args.further_args let ok = runDiscard genCommand(cmd = "mount", repo = repo.path, further_args = further_args) if ok == 0: echo fmt"Mounted {repo.path} at {further_args[0]}" else: echo "Failed to mount ", repo.path