yabm
Yet Another Boomark Manager
Install
git clone git@github.com:fandreuz/yabm.git
cd yabm
go install .
Install shell completion
See here.
Database
This CLI is backed by a database. To run a local Postgres DB locally:
podman run -it --rm \
-p 5432:5432 \
-e POSTGRES_DB=admin \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=pwd \
-v ./dev/db:/docker-entrypoint-initdb.d \
postgres
Image docs here.
Persisting data
The command above will spin up a local DB which won't persist any data upon restart.
You can optionally mount a volume to persist DB data:
PGDATA=/var/lib/postgresql/data
...
-e "PGDATA=$PGDATA" \
-v "./.postgres-data:$PGDATA" \
...
Script
A script to run a local DB via Podman with persistence in ./.postgres-data is
provided here.