Compile Output Printer
Outputs file counts, scan results, and errors as JSON to the console.
Usable as a visual report or REST response body for CI/CD integrations (GitHub Actions, k8s CronJobs).
Config Files
To configure the Compile output printer unit, Edit these files.
Below is the default configuration from: console/config.yaml.
ewogICJ0eXBlIiA6ICJvYmplY3QiLAogICJwcm9wZXJ0aWVzIiA6IHsKICAgICJ0ZW54IiA6IHsKICAgICAgInR5cGUiIDogInN0cmluZyIKICAgIH0sCiAgICAicHJpbnQiIDogewogICAgICAidHlwZSIgOiAib2JqZWN0IiwKICAgICAgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiA6IGZhbHNlLAogICAgICAicHJvcGVydGllcyIgOiB7CiAgICAgICAgInNjYW5UeXBlcyIgOiB7CiAgICAgICAgICAidHlwZSIgOiBbCiAgICAgICAgICAgICJhcnJheSIsCiAgICAgICAgICAgICJzdHJpbmciLAogICAgICAgICAgICAibnVsbCIKICAgICAgICAgIF0sCiAgICAgICAgICAibWFya2Rvd25EZXNjcmlwdGlvbiIgOiAiU2NhbiBjb21wb25lbnRzIHRvIHByaW50IHJlc3VsdHMgZm9yXG5cbkNvbnRyb2xzIHdoaWNoIHBoYXNlcyBvZiB0aGUgJ2NvbXBpbGUnIHBpcGVsaW5lIGVtaXQgcmVzdWx0cyB0byBKU09OIG91dHB1dC4gUG9zc2libGUgdmFsdWVzOiAgIHwgVmFsdWUgICAgICAgIHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwtLS0tLS0tLS0tLS0tLXwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS18IHwgc291cmNlcyAgICAgIHwgY2FsY3VsYXRlIHRoZSBudW1iZXIgb2YgZXhpc3Rpbmcgc291cmNlIGZpbGVzICB8IHwgc3ltYm9scyAgICAgIHwgY2FsY3VsYXRlIHRoZSBudW1iZXIgb2YgZXhpc3Rpbmcgc3ltYm9scyBmaWxlcyB8IHwgc2NhbiAgICAgICAgIHwgY2FwdHVyZSBzeW1ib2wgdmFsdWVzIGZyb20gaW5wdXQgZmlsZXMgICAgICAgICB8IHwgbGluayAgICAgICAgIHwgbWVyZ2luZyBvdXRwdXQgc3ltYm9scyBmaWxlcyAgICAgICAgICAgICAgICAgICB8IHwgcHVzaFRvR2l0SHViIHwgcHVzaGVkIHN5bWJvbCBmaWxlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IChEZWZhdWx0OiBbXCJsaW5rXCIsXCJzY2FuXCIsXCJwdXNoVG9HaXRIdWJcIl0pIiwKICAgICAgICAgICJpdGVtcyIgOiB7CiAgICAgICAgICAgICJ0eXBlIiA6ICJzdHJpbmciCiAgICAgICAgICB9LAogICAgICAgICAgImRlZmF1bHQiIDogWwogICAgICAgICAgICAibGluayIsCiAgICAgICAgICAgICJzY2FuIiwKICAgICAgICAgICAgInB1c2hUb0dpdEh1YiIKICAgICAgICAgIF0KICAgICAgICB9LAogICAgICAgICJwcm9ncmVzcyIgOiB7CiAgICAgICAgICAidHlwZSIgOiBbCiAgICAgICAgICAgICJib29sZWFuIiwKICAgICAgICAgICAgInN0cmluZyIsCiAgICAgICAgICAgICJudWxsIgogICAgICAgICAgXSwKICAgICAgICAgICJtYXJrZG93bkRlc2NyaXB0aW9uIiA6ICJSZXBvcnQgaS9vIHByb2dyZXNzIHRvIHRoZSBjb25zb2xlXG5cbkVuYWJsZXMvZGlzYWJsZXMgcmVwb3J0aW5nIG9mIGlucHV0IGZpbGVzIHNjYW5uZWQgdG8gc3Rkb3V0LiAoQWNjZXB0cyBib29sZWFuIG9yIHN0cmluZyB3aXRoICQ9IHByZWZpeCBmb3IgcnVudGltZSBldmFsdWF0aW9uKSAoRGVmYXVsdDogdHJ1ZSkiLAogICAgICAgICAgImRlZmF1bHQiIDogdHJ1ZQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0sCiAgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiA6IGZhbHNlCn0=
# 🔟❎ 'compile' console configuration
#
# Log stats, including the number of files traversed and as a JSON object to the console or for
# incorporating as part of a REST response to the pipeline's caller.
# To learn more see https://doc.log10x.com/compile/console
# Set the 10x pipeline to 'compile'
tenx: compile
# ============================== Console Options ==============================
print:
# 'progress' enables/disables reporting of input files scanned to stdout
progress: true
# 'scanTypes' controls which components of the compile process emit output to the console.
scanTypes:
- link
- scan
- pushToGitHub
Options
Specify the options below to configure the Compile output printer:
| Name | Description |
|---|---|
| printScanTypes | Scan components to print results for |
| printProgress | Report i/o progress to the console |
printScanTypes
Scan components to print results for.
| Type | Default |
|---|---|
| List | [link, scan, pushToGitHub] |
Controls which phases of the 'compile' pipeline emit results to JSON output.
Possible values:
| Value | Description |
|---|---|
| sources | calculate the number of existing source files |
| symbols | calculate the number of existing symbols files |
| scan | capture symbol values from input files |
| link | merging output symbols files |
| pushToGitHub | pushed symbol files |
printProgress
Report i/o progress to the console.
| Type | Default |
|---|---|
| Boolean | true |
Enables/disables reporting of input files scanned to stdout.
This unit is defined in console/unit.yaml.