Added connecting dev_step/user_input/command_run with the previous step in the database

This commit is contained in:
Zvonimir Sabljic
2023-08-09 08:38:21 +02:00
parent 2fe6a8d525
commit d4a888600e
8 changed files with 33 additions and 13 deletions

View File

@@ -23,6 +23,7 @@ def styled_text(project, question):
user_input = get_user_input_from_hash_id(project, question)
if user_input is not None and project.skip_steps:
# if we do, use it
project.checkpoints['last_user_input'] = user_input
print(colored(f'Restoring user input id {user_input.id}: ', 'yellow'), end='')
print(colored(f'{user_input.user_input}', 'yellow', attrs=['bold']))
return user_input.user_input