From 680c79e0302a605675887f1acb96454cdd1f9a13 Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Fri, 29 Jul 2022 23:22:34 -0400 Subject: [PATCH] update README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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