Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Step by Step User Input #2

Open
4 tasks
andrewbwm opened this issue Mar 8, 2024 · 0 comments
Open
4 tasks

Improve Step by Step User Input #2

andrewbwm opened this issue Mar 8, 2024 · 0 comments

Comments

@andrewbwm
Copy link
Contributor

Instead of having two steps, one where you select the option and the second one where you select the step we could have the following behaviour:

  • No options list and we just list the attack horizon/surface, as we do right now after an attack step is compromised. If the user inputs one of the valid numbers it compromises that step, as when you select (2).
  • If the input is just empty(the user pressed enter) print the attack horizon again, same as (1) right now.
  • We don't need to really worry about an exit function, but if we want to you can add it as a numbered option after all of the attack steps or maybe a -1.
  • When selecting a value that isn't one of the potential attack steps(for example selecting 13 when the available list is 1-8, or exit in case we implement the previous point) there should be a printed warning message that an invalid option was picked and then it should revert back to the user input. Right now it just crashes with an out of bounds error, which isn't great because that stops the entire traversal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant