diff --git a/tools/src/recipe.rs b/tools/src/recipe.rs index 28f2108..04eaddb 100644 --- a/tools/src/recipe.rs +++ b/tools/src/recipe.rs @@ -146,6 +146,14 @@ impl Recipe { } false } + + // A "print" is a recipe whose Action is "print". + pub fn is_print(&self) -> bool { + match self.action { + Action::print => true, + _ => false, + } + } } impl Recipe {