@@ -12,26 +12,32 @@ use serde_json::Value;
1212use std:: fmt:: Display ;
1313
1414pub mod add;
15+ pub mod and;
1516pub mod base64;
17+ pub mod bool;
1618pub mod concat;
1719pub mod create_array;
1820pub mod div;
1921pub mod envvar;
2022pub mod equals;
2123pub mod r#if;
24+ pub mod r#false;
2225pub mod format;
2326pub mod int;
2427pub mod max;
2528pub mod min;
2629pub mod mod_function;
2730pub mod mul;
31+ pub mod not;
32+ pub mod or;
2833pub mod parameters;
2934pub mod path;
3035pub mod reference;
3136pub mod resource_id;
3237pub mod secret;
3338pub mod sub;
3439pub mod system_root;
40+ pub mod r#true;
3541pub mod variables;
3642
3743/// The kind of argument that a function accepts.
@@ -77,26 +83,32 @@ impl FunctionDispatcher {
7783 pub fn new ( ) -> Self {
7884 let mut functions: HashMap < String , Box < dyn Function > > = HashMap :: new ( ) ;
7985 functions. insert ( "add" . to_string ( ) , Box :: new ( add:: Add { } ) ) ;
86+ functions. insert ( "and" . to_string ( ) , Box :: new ( and:: And { } ) ) ;
8087 functions. insert ( "base64" . to_string ( ) , Box :: new ( base64:: Base64 { } ) ) ;
88+ functions. insert ( "bool" . to_string ( ) , Box :: new ( bool:: Bool { } ) ) ;
8189 functions. insert ( "concat" . to_string ( ) , Box :: new ( concat:: Concat { } ) ) ;
8290 functions. insert ( "createArray" . to_string ( ) , Box :: new ( create_array:: CreateArray { } ) ) ;
8391 functions. insert ( "div" . to_string ( ) , Box :: new ( div:: Div { } ) ) ;
8492 functions. insert ( "envvar" . to_string ( ) , Box :: new ( envvar:: Envvar { } ) ) ;
8593 functions. insert ( "equals" . to_string ( ) , Box :: new ( equals:: Equals { } ) ) ;
94+ functions. insert ( "false" . to_string ( ) , Box :: new ( r#false:: False { } ) ) ;
8695 functions. insert ( "if" . to_string ( ) , Box :: new ( r#if:: If { } ) ) ;
8796 functions. insert ( "format" . to_string ( ) , Box :: new ( format:: Format { } ) ) ;
8897 functions. insert ( "int" . to_string ( ) , Box :: new ( int:: Int { } ) ) ;
8998 functions. insert ( "max" . to_string ( ) , Box :: new ( max:: Max { } ) ) ;
9099 functions. insert ( "min" . to_string ( ) , Box :: new ( min:: Min { } ) ) ;
91100 functions. insert ( "mod" . to_string ( ) , Box :: new ( mod_function:: Mod { } ) ) ;
92101 functions. insert ( "mul" . to_string ( ) , Box :: new ( mul:: Mul { } ) ) ;
102+ functions. insert ( "not" . to_string ( ) , Box :: new ( not:: Not { } ) ) ;
103+ functions. insert ( "or" . to_string ( ) , Box :: new ( or:: Or { } ) ) ;
93104 functions. insert ( "parameters" . to_string ( ) , Box :: new ( parameters:: Parameters { } ) ) ;
94105 functions. insert ( "path" . to_string ( ) , Box :: new ( path:: Path { } ) ) ;
95106 functions. insert ( "reference" . to_string ( ) , Box :: new ( reference:: Reference { } ) ) ;
96107 functions. insert ( "resourceId" . to_string ( ) , Box :: new ( resource_id:: ResourceId { } ) ) ;
97108 functions. insert ( "secret" . to_string ( ) , Box :: new ( secret:: Secret { } ) ) ;
98109 functions. insert ( "sub" . to_string ( ) , Box :: new ( sub:: Sub { } ) ) ;
99110 functions. insert ( "systemRoot" . to_string ( ) , Box :: new ( system_root:: SystemRoot { } ) ) ;
111+ functions. insert ( "true" . to_string ( ) , Box :: new ( r#true:: True { } ) ) ;
100112 functions. insert ( "variables" . to_string ( ) , Box :: new ( variables:: Variables { } ) ) ;
101113 Self {
102114 functions,
0 commit comments