Add questions when installing everything
This commit is contained in:
parent
2cfd39dbde
commit
51927219ef
1 changed files with 10 additions and 2 deletions
12
install.py
12
install.py
|
@ -261,9 +261,17 @@ class Installer:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not programs:
|
if not programs:
|
||||||
|
ui.info("No programs were specified.",
|
||||||
|
"Fetching from the configuration file.")
|
||||||
programs = sorted(self.conf.keys())
|
programs = sorted(self.conf.keys())
|
||||||
for program in programs:
|
for program in programs:
|
||||||
self.install_program(program)
|
if ui.ask_yes_no("Do you wish to install {}?".format(program)):
|
||||||
|
self.install_program(program)
|
||||||
|
else:
|
||||||
|
ui.info_2("Skipping {}".format(program))
|
||||||
|
else:
|
||||||
|
for program in programs:
|
||||||
|
self.install_program(program)
|
||||||
|
|
||||||
def install_program(self, program: str) -> None:
|
def install_program(self, program: str) -> None:
|
||||||
"""Install one program (called by self.install()).
|
"""Install one program (called by self.install()).
|
||||||
|
|
Loading…
Add table
Reference in a new issue