@@ -94,6 +94,7 @@ eza’s options are almost, but not quite, entirely unlike `ls`’s. Quick overv
- **--hyperlink**: display entries as hyperlinks
- **--absolute=(mode)**: display entries with their absolute path (on, follow, off)
- **-w**, **--width=(columns)**: set screen width in columns
+- **--json**: output results in JSON format (equivalent to `--long`)
</details>
@@ -44,6 +44,7 @@ complete -c eza -l absolute -d "Display entries with their absolute path" -x -a
off\t'Do not show the absolute path'
"
complete -c eza -l smart-group -d "Only show group if it has a different name from owner"
+complete -c eza -l json -d "Output results in JSON format (equivalent to --long)"
# Filtering and sorting options
complete -c eza -l group-directories-first -d "Sort directories before other files"
@@ -59,4 +59,5 @@ export extern "eza" [
--context(-Z) # List each file's security context
--smart-group # Only show group if it has a different name from owner
--stdin # When piping to eza. Read file paths from stdin
+ --json # Output results as JSON (equivalent to --long)
]
@@ -69,6 +69,7 @@ __eza() {
'*:filename:_files' \
--smart-group"[Only show group if it has a different name from owner]" \
--stdin"[When piping to eza. Read file names from stdin]"
+ --json"[Output results as JSON(equivalent to --long)]"
}
__eza
@@ -208,3 +208,5 @@ commands:
- --extended
? - -Z
- --context
+ ? - null
+ - --json