forked from Mirror/pmbootstrap
* Implement command to retrieve and set configuration values * qemu: show advice to use "pmbootstrap config" * Allow "pmbootstrap config" without positional arguments (prints the full config) * Check valid variable names
This commit is contained in:
parent
ab1bcd2e6f
commit
401c29af76
4 changed files with 34 additions and 1 deletions
|
@ -218,6 +218,12 @@ def arguments():
|
|||
parse_apkindex.add_argument("apkindex_path")
|
||||
parse_apkindex.add_argument("package", default=None, nargs="?")
|
||||
|
||||
# Action: config
|
||||
config = sub.add_parser("config",
|
||||
help="get and set pmbootstrap options")
|
||||
config.add_argument("name", nargs="?", help="variable name")
|
||||
config.add_argument("value", nargs="?", help="set variable to value")
|
||||
|
||||
# Action: qemu
|
||||
qemu = sub.add_parser("qemu")
|
||||
qemu.add_argument("--arch", choices=["aarch64", "arm", "x86_64"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue