Config: adds display.common.(ndigits|spaceBeforeUnit)

This commit is contained in:
李通洲
2026-04-16 15:45:12 +08:00
parent 64d2c4410e
commit 528f9f152c
2 changed files with 55 additions and 0 deletions
+16
View File
@@ -1392,6 +1392,22 @@
}
}
},
"common": {
"type": "object",
"additionalProperties": false,
"description": "Overwrite configurations of `duration`, `fraction`, `freq`, `percent`, `size` and `temp`\nPutting this before other properties will make it work as default configurations",
"properties": {
"ndigits": {
"description": "Set the number of decimal places to display",
"type": "integer",
"minimum": 0,
"maximum": 9
},
"spaceBeforeUnit": {
"$ref": "#/$defs/spaceBeforeUnit"
}
}
},
"noBuffer": {
"type": "boolean",
"description": "Whether to disable the stdout application buffer",