Skip to content

Commit

Permalink
Merge pull request #36 from SgiobairOg/feature/33-action-runner-scripts
Browse files Browse the repository at this point in the history
feat(editor): finished csv output
  • Loading branch information
SgiobairOg authored Feb 10, 2025
2 parents d18f698 + fcde4bc commit eda667b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/main/frontend/model/samples/value-finder.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"logLevel": "info",
"hops": [
{ "type": "declare", "declarations": { "output": "utils.file.txt(\"properties_containing_hardcoded_urls\")" } },
{
"type": "declare",
"declarations": {
"output": "file:csv(\"value_finder_results\")"
}
},
{
"type": "runScript",
"code": "output.line(\"path\", \"property\", \"value\");",
"extension": "jexl",
"putLocalsBackIntoScope": true
},
{
"type": "nodeQuery",
"query": "SELECT * FROM [nt:base] AS node WHERE ISDESCENDANTNODE([${args.path}])\n${(args.resourceTypeInclude != null && args.resourceTypeInclude.trim() != '') ? ` AND node.[sling:resourceType] LIKE \"${args.resourceTypeInclude}\"` : ''}\n${(args.resourceTypeExclude != null && args.resourceTypeExclude.trim() != '') ? ` AND node.[sling:resourceType] LIKE \"${args.resourceTypeExclude}\"` : ''}",
Expand All @@ -27,7 +38,7 @@
"hops": [
{
"type": "runScript",
"code": "output.append(node.path);\noutput.append(\"-\");\noutput.append(property.name);\noutput.append(\":\");\noutput.append(joinedPropertyValue);\noutput.append(\"\\n\");",
"code": "output.line(node.path, property.name, joinedPropertyValue);",
"extension": "jexl",
"putLocalsBackIntoScope": true
}
Expand Down

0 comments on commit eda667b

Please sign in to comment.