Closed xiang-jun closed 2 years ago
Example JSON (example.json):
example.json
[ { "index": 1, "name": "Brian Vaughn", "email": "bvaughn@fb.com", "date": "2021-05-07T13:10:50Z" }, { "index": 2, "name": "Brian Vaughn", "email": "bvaughn@fb.com", "date": "2021-05-07T12:53:39Z" } ]
With the following command: fx example.json table, got the following:
fx example.json table
┌───────┬──────────────┬────────────────┬──────────────────────┐ │ index │ name │ email │ date │ ├───────┼──────────────┼────────────────┼──────────────────────┤ │ │ Brian Vaughn │ bvaughn@fb.com │ 2021-05-07T13:10:50Z │ ├───────┼──────────────┼────────────────┼──────────────────────┤ │ │ Brian Vaughn │ bvaughn@fb.com │ 2021-05-07T12:53:39Z │ └───────┴──────────────┴────────────────┴──────────────────────┘
The information on the index column is missing. The table was set up by following instructions in https://medium.com/@antonmedv/discover-how-to-use-fx-effectively-668845d2a4ea
Running cli-table3 directly on the JSON data gives expected results.
cli-table3
Thanks,
Xiang-Jun
I rewrote the entire fx in golang. So I belove this issue is no longer needed.
Example JSON (
example.json
):With the following command:
fx example.json table
, got the following:The information on the index column is missing. The table was set up by following instructions in https://medium.com/@antonmedv/discover-how-to-use-fx-effectively-668845d2a4ea
Running
cli-table3
directly on the JSON data gives expected results.Thanks,
Xiang-Jun