File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1111* It seems very fast at executing.
1212* It's a good alternative to using ` package.json `
1313* ` just ` always runs in the directory of the just file.
14+ * There seems to be some problems with where variables are evaluated.
1415
1516## Install
1617
@@ -121,6 +122,18 @@ just -f loops.justfile counter
121122just -f loops.justfile directory-listing
122123```
123124
125+ ## Paths
126+
127+ Path handling in just.
128+
129+ ``` sh
130+ # NOTE: default values cause problems
131+ just -f paths.justfile paths-inbuilt
132+
133+ # Seems to work fine when you pass them in.
134+ just -f paths.justfile paths-inbuilt ../52_xml/README.md
135+ ```
136+
124137## Resources
125138
126139* casey/just repo [ here] ( https://github.com/casey/just )
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ paths-bash filepath="${SOURCE_FILE}":
2525 #!/usr/bin/env bash
2626 set -eufo pipefail
2727 echo "default: ${SOURCE_FILE}"
28-
28+ echo "****************"
29+ echo "Test - paths-bash"
30+ echo "****************"
2931 export WORKING_PATH=$(pwd)
3032 export HOME_DIR=~
3133 export SCRIPT_PATH=$0
@@ -54,6 +56,9 @@ paths-bash filepath="${SOURCE_FILE}":
5456paths-inbuilt filepath="${SOURCE_FILE}":
5557 #!/usr/bin/env bash
5658 set -eufo pipefail
59+ echo "****************"
60+ echo "Test - paths-inbuilt"
61+ echo "****************"
5762 echo "default: ${SOURCE_FILE}"
5863 echo "filepath: {{ filepath }}"
5964 echo ""
@@ -69,7 +74,7 @@ paths-test filepath="${SOURCE_FILE}":
6974 #!/usr/bin/env bash
7075 set -eufo pipefail
7176 echo "****************"
72- echo "Test"
77+ echo "Test - paths-test "
7378 echo "****************"
7479 echo "default: ${SOURCE_FILE}"
7580 export INPUT_FILEPATH="{{ filepath }}"
You can’t perform that action at this time.
0 commit comments