Skip to content

Commit 223de1e

Browse files
GH workflows
1 parent ec929e9 commit 223de1e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

scripts/cli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export $(cat ./config/.env | grep -v "^#" | xargs) && mix Arca.Cli $*
1+
REPL_MODE=true mix Arca.Cli $*

scripts/repl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#!/bin/sh
22

3-
# Load environment variables from .env file if it exists
4-
if [ -f ./config/.env ]; then
5-
export $(cat ./config/.env | grep -v "^#" | xargs)
6-
fi
7-
83
# Set current directory to the script's directory
94
cd "$(dirname "$0")/.." || exit
105

@@ -25,8 +20,8 @@ else
2520
echo "Warning: rlwrap not found. Install rlwrap for command history and completion."
2621
fi
2722

28-
# Define the original command
29-
ORIGINAL_COMMAND="mix Arca.Cli repl $*"
23+
# Define the original command with REPL_MODE
24+
ORIGINAL_COMMAND="REPL_MODE=true mix Arca.Cli repl $*"
3025

3126
# Run the command with rlwrap if available
3227
if [ -n "$RLWRAP_CMD" ]; then

0 commit comments

Comments
 (0)