tzk/git.py

12 lines
275 B
Python
Raw Normal View History

import subprocess
from typing import Sequence
def exec(*args: str):
return subprocess.check_call(["git", *args])
2021-08-25 20:38:26 +00:00
2021-08-26 19:04:09 +00:00
def rc(*args: str):
return subprocess.call(["git", *args])
def read(*args: str):
return subprocess.check_output(["git", *args], text=True).strip()