Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/cfengine_cli/syntax-description.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,13 @@
"type": "option",
"visibility": "body"
},
"silence": {
"attribute": "silence",
"range": "content|add|remove|owner|group|perms|device|mtime|inode|stats|all",
"status": "normal",
"type": "slist",
"visibility": "body"
},
"update_hashes": {
"attribute": "update_hashes",
"range": "true,false,yes,no,on,off",
Expand Down Expand Up @@ -3357,6 +3364,17 @@
],
"status": "normal"
},
"reactor": {
"promiseTypes": [
"events",
"classes",
"defaults",
"meta",
"reports",
"vars"
],
"status": "normal"
},
"server": {
"promiseTypes": [
"access",
Expand Down Expand Up @@ -6976,6 +6994,17 @@
"status": "normal",
"variadic": false
},
"strtotime": {
"cached": false,
"category": "data",
"collecting": false,
"parameters": [
{ "description": "String to parse", "range": ".*", "type": "string" }
],
"returnType": "int",
"status": "normal",
"variadic": false
},
"sublist": {
"cached": false,
"category": "data",
Expand Down
2 changes: 1 addition & 1 deletion tests/lint/004_block_type.expected.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

bundle notavalidtype my_bundle
^-----------^
Error: Bundle type must be one of (agent, common, edit_line, edit_xml, monitor, server, watch), not 'notavalidtype' at tests/lint/004_block_type.x.cf:1:8
Error: Bundle type must be one of (agent, common, edit_line, edit_xml, monitor, reactor, server, watch), not 'notavalidtype' at tests/lint/004_block_type.x.cf:1:8


promise server my_promise_type
Expand Down
13 changes: 13 additions & 0 deletions tests/lint/021_reactor_strtotime_silence.cf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body changes my_changes
{
silence => { "mtime", "content" };
}

bundle reactor my_reactor
{
vars:
"timestamp" int => strtotime("2026-08-26");

reports:
"Parsed timestamp => $(timestamp)";
}