mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-30 14:32:08 -05:00
13 lines
274 B
Python
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)
|