update README
This commit is contained in:
parent
a25c1b3fb8
commit
680c79e030
19
README.md
19
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
|
||||
|
Loading…
Reference in New Issue
Block a user