13 lines
264 B
Nim
13 lines
264 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} {repo} {args}"
|
||
|
return cmd
|
||
|
|