Skip to main content

render_delete_context_preview

Function render_delete_context_preview 

Source
pub fn render_delete_context_preview(
    id: &str,
    preview: &DeleteContextPreviewResultBody,
) -> bool
Expand description

Print the human-readable resource preview shown before context deletion. Returns true when the preview lists any resources (i.e. the caller should prompt for confirmation unless --force).

Shared by online + offline delete paths so both warn about exactly the same resource classes.