Prechádzať zdrojové kódy

docs(json): changed docs to add new arg

MartinFillon 2 rokov pred
rodič
commit
e2d428120c

+ 1 - 0
README.md

@@ -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>
 

+ 1 - 0
completions/fish/eza.fish

@@ -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"

+ 1 - 0
completions/nush/eza.nu

@@ -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)
 ]

+ 1 - 0
completions/zsh/_eza

@@ -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

+ 2 - 0
powertest.yaml

@@ -208,3 +208,5 @@ commands:
     - --extended
   ? - -Z
     - --context
+  ? - null
+    - --json