kellyjonbrazil / jc

CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
MIT License
7.91k stars 210 forks source link

jc ls --time-style=+"%F %T" -al -> wrong output #579

Closed martin-christen closed 4 months ago

martin-christen commented 4 months ago

if you run jc ls with a time-style the output is wrong filename is empty date contains the date and the filename

[ { "filename": "", "flags": "-rw-r--r--.", "links": 1, "owner": "xcarrier", "group": "oinstall", "size": 423, "date": "2024-07-08 01:37:13 crontab.txt", "epoch": null, "epoch_utc": null } ]

kellyjonbrazil commented 4 months ago

Hi there - thanks for your interest in jc! only the full-iso time-style option for ls is supported by the parser.

Options supported:

  • lbaR1
  • --time-style=full-iso

https://github.com/kellyjonbrazil/jc/blob/master/docs/parsers/ls.md