input_settings.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. """Input configuration settings for the CLI.
  2. This module defines all configurable input parameters including prompt styles,
  3. colors, and default behaviors.
  4. """
  5. class InputSettings:
  6. """Centralized input configuration settings.
  7. This class holds all configurable input parameters including prompt styles,
  8. colors, validation messages, and default behaviors.
  9. """
  10. # === Prompt Styles ===
  11. PROMPT_STYLE = "white"
  12. PROMPT_DEFAULT_STYLE = "dim"
  13. PROMPT_ERROR_STYLE = "red"
  14. PROMPT_SUCCESS_STYLE = "green"
  15. # === Validation Messages ===
  16. MSG_INVALID_INTEGER = "Please enter a valid integer"
  17. MSG_INVALID_FLOAT = "Please enter a valid number"
  18. MSG_INVALID_EMAIL = "Please enter a valid email address"
  19. MSG_INVALID_URL = "Please enter a valid URL"
  20. MSG_INVALID_HOSTNAME = "Please enter a valid hostname"
  21. MSG_REQUIRED = "This field is required"
  22. MSG_INVALID_CHOICE = "Please select a valid option"
  23. # === Default Values ===
  24. DEFAULT_CONFIRM_YES = True
  25. DEFAULT_PASSWORD_MASK = "•"
  26. # === Prompt Labels ===
  27. LABEL_DEFAULT = "default"
  28. LABEL_AUTO = "*auto"
  29. LABEL_OPTIONAL = "optional"