diff --git a/jaq-std/src/defs.jq b/jaq-std/src/defs.jq index 9bb2f3fd4..e34bc2cf5 100644 --- a/jaq-std/src/defs.jq +++ b/jaq-std/src/defs.jq @@ -1,7 +1,9 @@ def empty: {}[] as $x | .; def null: [][0]; +def debug(msgs): ((msgs | debug) as $x | empty), .; def error(msgs): ((msgs | error) as $x | empty), .; + def halt: halt_error(5); # Booleans