12 lines
267 B
Nim
12 lines
267 B
Nim
import strutils
|
|
import strformat
|
|
|
|
import ../model/command_type
|
|
import ../utils/run
|
|
export run
|
|
|
|
proc genCommand*(cmd: string, repo: string, others: seq[string]): string =
|
|
let args = others.join(" ")
|
|
let cmd = fmt"{RESTIC_BIN} {cmd} -r {repo} {args}"
|
|
return cmd
|
|
|