tzk/git.py
2021-08-26 14:04:09 -05:00

12 lines
275 B
Python

import subprocess
from typing import Sequence
def exec(*args: str):
return subprocess.check_call(["git", *args])
def rc(*args: str):
return subprocess.call(["git", *args])
def read(*args: str):
return subprocess.check_output(["git", *args], text=True).strip()