]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
column: introduce LIBSMARTCOLS_JSON environment argument
authorWanBingjiang <wanbingjiang@webray.com.cn>
Thu, 5 Feb 2026 09:11:06 +0000 (17:11 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Mon, 23 Feb 2026 08:13:16 +0000 (16:13 +0800)
text-utils/column.1.adoc

index 1abe5967ea2b8825ae563ce0ac0b8ba595eb7b54..b17fb199a4a490c98912ebf56e43fa0818889a36 100644 (file)
@@ -252,7 +252,18 @@ will be colorized by direct color names.
 
 == ENVIRONMENT
 
-The environment variable *COLUMNS* is used to determine the size of the screen if no other information is available.
+*COLUMNS*::
+is used to determine the size of the screen if no other information is available.
+
+*LIBSMARTCOLS_JSON*::
+Controls JSON output format when using *--json*. Supported values:
++
+*compact*::
+Output JSON in compact form (minified, minimal whitespace).
+*lines*::
+Output in JSON Lines format (one JSON object per line).
++
+If unset or set to any other value, pretty-printed JSON is used.
 
 == HISTORY