1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-24 12:26:05 -05:00
dotfiles/lib/yay.py

13 lines
274 B
Python

import lib.proc as proc
def install(package):
output = yay(['-S', package])
def install_all(packages):
output = yay(['-S'] + packages)
def yay(flags):
cmd = ['yay', '--noconfirm'] + flags
subproc = proc.exec(cmd)
return proc.communicate(subproc, cmd)