Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add args option to db-shell recipe (#259)

Madison Swain-Bowden601f7639f4f9
diff --git a/justfile b/justfile
index cd7487fe7..0c9334bae 100644
--- a/justfile
+++ b/justfile
@@ -59,6 +59,6 @@ shell: up
airflow command="": up
docker-compose {{ DEV_DOCKER_FILES }} exec {{ SERVICE }} airflow {{ command }}
-# Launch a pgcli shell on the postgres container
-db-shell: up
- docker-compose {{ DEV_DOCKER_FILES }} exec postgres pgcli
+# Launch a pgcli shell on the postgres container (defaults to openledger) use "airflow" for airflow metastore
+db-shell args="openledger": up
+ docker-compose {{ DEV_DOCKER_FILES }} exec postgres pgcli {{ args }}