update README

This commit is contained in:
Balakrishnan Balasubramanian 2022-07-29 23:22:34 -04:00
parent a25c1b3fb8
commit 680c79e030

View File

@ -90,3 +90,22 @@ Progress Tracker
---------------- ----------------
Wrote a small go helper [ProgressTracker](https://gitlab.com/balki/ytui/-/blob/main/pubsub/pt.go), to watch for progress and update subscribers. Hope it is useful elsewhere too. It has full unit test coverage Wrote a small go helper [ProgressTracker](https://gitlab.com/balki/ytui/-/blob/main/pubsub/pt.go), to watch for progress and update subscribers. Hope it is useful elsewhere too. It has full unit test coverage
Tips
----
## Quick view of the db in command line.
Needs [yq](https://github.com/mikefarah/yq) and [xsv](https://github.com/burntsushi/xsv) installed
yq --from-file /dev/fd/7 ./db.json -o csv 7<<'EOM' | xsv table
.items
| del(.[] | .url)
| (
[ .[0] | keys ] +
[ .[]
| .title |= sub("\n", "")
| [.*]
]
)
EOM