You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
moonstone/ubuntu_smoother/utils/snap.py

19 lines
336 B
Python

import subprocess
class Snap:
@staticmethod
def install(packages: list):
subprocess.run(
['snap', 'install'] + packages,
check=True
)
@staticmethod
def remove(packages: list):
subprocess.run(
['snap', 'remove'] + packages,
check=True
)