]> git.parisson.com Git - docker-django-scripts.git/commitdiff
[Poetry] : add script to facilitate package installation
authorEmilie Zawadzki <emilie.zawadzki@ircam.fr>
Thu, 17 Sep 2020 10:41:30 +0000 (12:41 +0200)
committerEmilie Zawadzki <emilie.zawadzki@ircam.fr>
Thu, 17 Sep 2020 10:41:30 +0000 (12:41 +0200)
dev/poetry_add.sh [new file with mode: 0755]

diff --git a/dev/poetry_add.sh b/dev/poetry_add.sh
new file mode 100755 (executable)
index 0000000..a496f45
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ -z "$1" ]; then
+    echo -e "[WARNING] Please provide the name of package you want to install.\nThen execute the command : ./bin/dev/poetry_add.sh [name_of_package]"
+else
+    docker-compose exec app poetry add $1
+fi