12 lines
262 B
Nim
12 lines
262 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"{BORG_BIN} {cmd} {repo} {args}"
|
|
return cmd
|
|
|