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.
19 lines
336 B
Python
19 lines
336 B
Python
2 years ago
|
import subprocess
|
||
|
|
||
|
|
||
|
class Snap:
|
||
|
|
||
|
@staticmethod
|
||
2 years ago
|
def install(packages: list):
|
||
2 years ago
|
subprocess.run(
|
||
|
['snap', 'install'] + packages,
|
||
|
check=True
|
||
|
)
|
||
|
|
||
|
@staticmethod
|
||
2 years ago
|
def remove(packages: list):
|
||
2 years ago
|
subprocess.run(
|
||
|
['snap', 'remove'] + packages,
|
||
|
check=True
|
||
|
)
|