summaryrefslogtreecommitdiffstats
path: root/.bin/poetry-clean-init
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-08 12:40:19 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-08 12:40:19 +0200
commitce6be946d024aa55a15d576388d05f90be671cf2 (patch)
treefa1053446a3fb06daee8438c1ff664cb36c0abcb /.bin/poetry-clean-init
parent703ed1915c69911a95cab6e1fb6524629c976800 (diff)
downloaddots-ce6be946d024aa55a15d576388d05f90be671cf2.tar.gz
Sat Oct 8 12:40:19 PM CEST 2022
Diffstat (limited to '.bin/poetry-clean-init')
-rwxr-xr-x.bin/poetry-clean-init12
1 files changed, 12 insertions, 0 deletions
diff --git a/.bin/poetry-clean-init b/.bin/poetry-clean-init
new file mode 100755
index 0000000..ad7da81
--- /dev/null
+++ b/.bin/poetry-clean-init
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -xe
+
+
+poetry env info -p
+test -x "${1}"
+
+rm -r $(poetry env info -p) poetry.lock
+poetry env use "${1}"
+poetry update --dry-run
+poetry install
remember that computers suck.