pub fn confirm_safe_code() -> bool
Expand description
Prompts the user to confirm whether it is safe to run code written by AI.
§Returns
This function returns a bool
:
true
if the user confirms to continue with the code execution.false
if the user chooses to stop the project.
§Behavior
The user will be presented with a warning and two options:
[1]
to confirm it’s all good.[2]
to stop the project.
If the input is invalid, the prompt will ask again until a valid response is received.