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