Skip to content

Commit 39b731b

Browse files
committed
Add a handy helper rc script to allow easy local dev
1 parent 6a66b4f commit 39b731b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

scripts/set-local-testing.rc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
if [ ! -f README.md ];then
2+
echo "Run this command from the root of the project directory"
3+
else
4+
FILE="dev.tfrc"
5+
CFG=`realpath $FILE`
6+
ROOTDIR=`dirname $CFG`
7+
8+
echo "
9+
provider_installation {
10+
dev_overrides {
11+
\"Mastercard/restapi\" = \"$ROOTDIR\"
12+
}
13+
}
14+
" > "$FILE"
15+
16+
export TF_CLI_CONFIG_FILE="$CFG"
17+
fi

0 commit comments

Comments
 (0)