Skip to main content

needs_prompt

Function needs_prompt 

Source
pub fn needs_prompt(
    cwd: &Path,
    store: &TrustStore,
    override_: Option<bool>,
    default: Option<DefaultProjectTrust>,
) -> Result<bool>
Expand description

Whether startup asks whether to trust cwd: it has resources needing trust and neither an override, a stored decision nor the defaultProjectTrust setting decides. An error when the store must be read and cannot be.