pmbootstrap-meow/pmb/commands
Newbyte 7d2f055bcb
pmb: Make RunOutputTypeDefault and RunOutputTypePopen enums
This allows us to get rid of some of the validation in sanity_checks()
as mypy handles this validation at "build time", and any typos in the
enum instantiation would be a runtime error rather than a silent
failure.

Additionally, it allows us to encode some of the behaviour of the
different output types into the type definition itself by using methods.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2642
2025-07-10 20:57:51 +02:00
..
__init__.py Remove "pmbootstrap repo_bootstrap" 2025-06-03 17:25:41 +02:00
aportgen.py pmb: Remove args from aportgen command (MR 2432) 2024-10-13 19:43:31 +02:00
base.py pmb: Add more type hints (MR 2490) 2024-12-19 10:09:22 +00:00
flasher.py pmb.flasher: Fix passing command line flags (MR 2543) 2025-02-01 22:38:55 +01:00
index.py pmb: Add more type hints (MR 2490) 2024-12-19 10:09:22 +00:00
kconfig.py pmb: Add more type hints (MR 2490) 2024-12-19 10:09:22 +00:00
log.py pmb: Make RunOutputTypeDefault and RunOutputTypePopen enums 2025-07-10 20:57:51 +02:00
pkgrel_bump.py pmb: Migrate pkgrel_bump to Command (MR 2411) 2024-09-26 18:27:00 +02:00
pkgver_bump.py pmb.commands: Add pkgver_bump (MR 2415) 2024-09-30 12:45:21 +02:00
pull.py pmb.commands.pull: Remove bool return type from run() (MR 2490) 2024-12-19 10:09:22 +00:00
shutdown.py pmb: Add more type hints (MR 2490) 2024-12-19 10:09:22 +00:00
test.py pmb: Add more type hints (MR 2490) 2024-12-19 10:09:22 +00:00