in scripts/delete_auto_launch_config.py [0:0]
def prompt_for_configuration_ids(self, response : str, retrieved_configs_to_delete_map : Dict) -> str:
while True:
if response == "quit":
return response
if response == "done":
print("Configs to delete:")
for key, value in self.configs_to_delete_map.items():
print(f"{key} -> {value}")
response = Prompter.prompt_for_input("Please confirm that the configuration should be deleted.\nEnter 'yes' to confirm deletion for selected configurations. Enter any other input to quit")
return response
if response in retrieved_configs_to_delete_map.keys():
self.configs_to_delete_map.update({response : retrieved_configs_to_delete_map.get(response)})
else:
print(f"{response} is not one of: {retrieved_configs_to_delete_map.keys()}")
response = Prompter.prompt_for_input("Enter specific configuration IDs one at a time to select only those for deletion. Enter 'done' to finish selection. Enter 'quit' to exit")