rwx/cmd/__init__.py

16 lines
380 B
Python
Raw Normal View History

2024-02-16 20:11:28 +00:00
commands: list[str] = []
packages: list[str] = []
def need(command: str) -> None:
match command:
case 'debootstrap':
package = 'debootstrap'
case 'mksquashfs' | 'unsquashfs':
package = 'squashfs-tools'
case _:
package = None
if package:
if package not in packages:
packages.append(package)