We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec6eddb commit 90a7765Copy full SHA for 90a7765
docker-compose/local/lps-local.sh
@@ -7,6 +7,22 @@ set_defaults() {
7
export LPS_STAGE=regtest
8
}
9
10
+if [[ "$1" == "--help" || "$1" == "-h" ]]; then
11
+ echo "Usage: $0 [OPTIONS]"
12
+ echo ""
13
+ echo "Options:"
14
+ echo " -r, --reset Reset the environment by stopping containers and removing volumes"
15
+ echo " -h, --help Show this help message and exit"
16
+ exit 0
17
+fi
18
+
19
+if [[ "$1" == "--reset" || "$1" == "-r" ]]; then
20
+ echo "Resetting environment..."
21
+ docker compose -p local down
22
+ rm -rf volumes
23
+ rm -f .env.regtest # delete default
24
25
26
: "${ENV_FILE=".env.regtest"}" ; export ENV_FILE
27
if [ ! -f "$ENV_FILE" ]; then
28
echo "Creating $ENV_FILE from sample-config.env..."; cp ../../sample-config.env "$ENV_FILE"
0 commit comments