feat: Add setup function

This commit is contained in:
2026-04-15 15:59:36 +02:00
parent ead9e3a3f7
commit f5386d0e98
3 changed files with 20 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
import subprocess
from commands.util import pacman
def setup():
print("==> Installing required packages")
if not pacman.install_package_list(["git"]):
print("Git installation failed")
return
subprocess.run(["git", "clone", "https://aur.archlinux.org/yay.git"], cwd="/tmp")
subprocess.run(["makepkg", "-si"], cwd="/tmp/yay")
print("==> Installation completed")