Skip to content

Commit 7dda91e

Browse files
committed
docs(just): 📝 Update instructions again with just path handling.
1 parent 9d106c1 commit 7dda91e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

75_just/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ NOTES:
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
121122
just -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)

75_just/paths.justfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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}":
5456
paths-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 }}"

0 commit comments

Comments
 (0)