1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-27 21:19:51 -05:00
dotfiles/lib/yay.py

13 lines
274 B
Python
Raw Normal View History

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