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).
Configuration
To configure the Compile output printer unit, Edit these settings.
Below is the default configuration from: console/config.yaml.
ewogICJ0eXBlIiA6ICJvYmplY3QiLAogICJwcm9wZXJ0aWVzIiA6IHsKICAgICJ0ZW54IiA6IHsKICAgICAgInR5cGUiIDogInN0cmluZyIKICAgIH0sCiAgICAicHJpbnQiIDogewogICAgICAidHlwZSIgOiAib2JqZWN0IiwKICAgICAgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiA6IGZhbHNlLAogICAgICAicHJvcGVydGllcyIgOiB7CiAgICAgICAgInNjYW5UeXBlcyIgOiB7CiAgICAgICAgICAidHlwZSIgOiBbCiAgICAgICAgICAgICJhcnJheSIsCiAgICAgICAgICAgICJudWxsIgogICAgICAgICAgXSwKICAgICAgICAgICJtYXJrZG93bkRlc2NyaXB0aW9uIiA6ICJTY2FuIGNvbXBvbmVudHMgdG8gcHJpbnQgcmVzdWx0cyBmb3JcblxuQ29udHJvbHMgd2hpY2ggcGhhc2VzIG9mIHRoZSAnY29tcGlsZScgcGlwZWxpbmUgZW1pdCByZXN1bHRzIHRvIEpTT04gb3V0cHV0LiBQb3NzaWJsZSB2YWx1ZXM6ICAgfCBWYWx1ZSAgICAgICAgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfC0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwgfCBzb3VyY2VzICAgICAgfCBjYWxjdWxhdGUgdGhlIG51bWJlciBvZiBleGlzdGluZyBzb3VyY2UgZmlsZXMgIHwgfCBzeW1ib2xzICAgICAgfCBjYWxjdWxhdGUgdGhlIG51bWJlciBvZiBleGlzdGluZyBzeW1ib2xzIGZpbGVzIHwgfCBzY2FuICAgICAgICAgfCBjYXB0dXJlIHN5bWJvbCB2YWx1ZXMgZnJvbSBpbnB1dCBmaWxlcyAgICAgICAgIHwgfCBsaW5rICAgICAgICAgfCBtZXJnaW5nIG91dHB1dCBzeW1ib2xzIGZpbGVzICAgICAgICAgICAgICAgICAgIHwgfCBwdXNoVG9HaXRIdWIgfCBwdXNoZWQgc3ltYm9sIGZpbGVzICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgKERlZmF1bHQ6IFtcImxpbmtcIixcInNjYW5cIixcInB1c2hUb0dpdEh1YlwiXSkiLAogICAgICAgICAgIml0ZW1zIiA6IHsKICAgICAgICAgICAgInR5cGUiIDogInN0cmluZyIKICAgICAgICAgIH0sCiAgICAgICAgICAiZGVmYXVsdCIgOiBbCiAgICAgICAgICAgICJsaW5rIiwKICAgICAgICAgICAgInNjYW4iLAogICAgICAgICAgICAicHVzaFRvR2l0SHViIgogICAgICAgICAgXQogICAgICAgIH0sCiAgICAgICAgInByb2dyZXNzIiA6IHsKICAgICAgICAgICJ0eXBlIiA6IFsKICAgICAgICAgICAgImJvb2xlYW4iLAogICAgICAgICAgICAic3RyaW5nIgogICAgICAgICAgXSwKICAgICAgICAgICJtYXJrZG93bkRlc2NyaXB0aW9uIiA6ICJSZXBvcnQgaS9vIHByb2dyZXNzIHRvIHRoZSBjb25zb2xlXG5cbkVuYWJsZXMvZGlzYWJsZXMgcmVwb3J0aW5nIG9mIGlucHV0IGZpbGVzIHNjYW5uZWQgdG8gc3Rkb3V0LiAoQWNjZXB0cyBib29sZWFuIG9yIHN0cmluZyB3aXRoICQ9IHByZWZpeCBmb3IgcnVudGltZSBldmFsdWF0aW9uKSAoRGVmYXVsdDogdHJ1ZSkiLAogICAgICAgICAgImRlZmF1bHQiIDogdHJ1ZQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0sCiAgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIiA6IGZhbHNlCn0=
# 🔟❎ '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.