From 7125412f076c46a9742d133f685496c662220191 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Mon, 3 Apr 2023 18:33:11 +0200 Subject: [PATCH] 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 Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230403163311.927063-1-luca@z3ntu.xyz%3E --- pmb/aportgen/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmb/aportgen/device.py b/pmb/aportgen/device.py index 6883f475..aaff6656 100644 --- a/pmb/aportgen/device.py +++ b/pmb/aportgen/device.py @@ -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":