util.py: relocate user-prompting functions to ui.py
This commit is contained in:
parent
9888fe4c65
commit
1d8b908c7c
45 changed files with 300 additions and 229 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue