|
|
@@ -14,6 +14,11 @@ def main():
|
|
|
delta()
|
|
|
|
|
|
def delta():
|
|
|
+ if platform.system() == 'Darwin':
|
|
|
+ print('$ brew install git-delta')
|
|
|
+ subprocess.run(['brew', 'install', 'git-delta'], check=True)
|
|
|
+ return
|
|
|
+
|
|
|
client = httpx.Client()
|
|
|
r = client.get('https://api.github.com/repos/dandavison/delta/releases/latest',
|
|
|
headers={'Accept': 'application/vnd.github+json', 'X-GitHub-Api-Version': '2022-11-28'})
|