pmb.aportgen.device: fix flash method autocomplete
In order to provide tab completion to the "Flash method" question we need to provide pmb.helpers.cli.ask with the possible options. Do that. Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230403163311.927063-1-luca@z3ntu.xyz%3E
This commit is contained in:
parent
c0b46612c0
commit
7125412f07
|
@ -73,7 +73,8 @@ def ask_for_flash_method():
|
|||
logging.info("Which flash method does the device support?")
|
||||
method = pmb.helpers.cli.ask("Flash method",
|
||||
pmb.config.flash_methods,
|
||||
pmb.config.flash_methods[0])
|
||||
pmb.config.flash_methods[0],
|
||||
complete=pmb.config.flash_methods)
|
||||
|
||||
if method in pmb.config.flash_methods:
|
||||
if method == "heimdall":
|
||||
|
|
Loading…
Reference in New Issue