util.py: relocate user-prompting functions to ui.py

This commit is contained in:
The MMGen Project 2022-10-17 18:37:22 +00:00
commit 1d8b908c7c
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
45 changed files with 300 additions and 229 deletions

View file

@ -83,6 +83,7 @@ if opt.list_paths:
if not opt.no_prompt:
m = 'Deleting the following paths and files:\n {}\nProceed?'
from mmgen.ui import keypress_confirm
if not keypress_confirm(m.format('\n '.join(del_list))):
die(1,'Exiting at user request')