14 lines
448 B
Nim
14 lines
448 B
Nim
import ../model/config_type
|
|
import execute
|
|
import strformat
|
|
|
|
import threadlogging
|
|
|
|
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:
|
|
info fmt"Mounted {repo.path} at {further_args[0]}"
|
|
else:
|
|
error "Failed to mount ", repo.path
|