Skip to main content

is_mutating_tool

Function is_mutating_tool 

Source
pub fn is_mutating_tool(name: &str) -> bool
Expand description

Returns true if the tool performs a mutating operation.

Convenience wrapper over classify_tool for call sites that only need a bool (e.g., loop guard).

use koda_core::tools::is_mutating_tool;

assert!(!is_mutating_tool("Read"));
assert!(is_mutating_tool("Write"));
assert!(is_mutating_tool("Delete"));