pub fn should_skip_password_modal(settings: &Settings) -> boolExpand description
What: Determine whether the Pacsea password modal should be skipped.
Inputs:
settings: Reference to the application settings.
Output:
trueif the password modal should be skipped,falseif it should be shown.
Details:
- Resolves the effective
AuthModeviaresolve_auth_mode. Interactivealways skips the modal.PasswordlessOnlyskips only when{tool} -n truesucceeds on the system.Promptnever skips the modal.- Tool-agnostic: works identically for sudo and doas.