diff --git a/README.md b/README.md index 8fb64cf..c92e4b2 100644 --- a/README.md +++ b/README.md @@ -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 + + +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