Skip to main content

should_skip_password_modal

Function should_skip_password_modal 

Source
pub fn should_skip_password_modal(settings: &Settings) -> bool
Expand description

What: Determine whether the Pacsea password modal should be skipped.

Inputs:

  • settings: Reference to the application settings.

Output:

  • true if the password modal should be skipped, false if it should be shown.

Details:

  • Resolves the effective AuthMode via resolve_auth_mode.
  • Interactive always skips the modal.
  • PasswordlessOnly skips only when {tool} -n true succeeds on the system.
  • Prompt never skips the modal.
  • Tool-agnostic: works identically for sudo and doas.