Skip to content

Commit 971a56d

Browse files
committed
feat(just): ✨ Add just examples with path manipulation
1 parent 3ae49bf commit 971a56d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

75_just/paths.justfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
set dotenv-load := true
2+
3+
# default lists actions
4+
default:
5+
@just -f {{ source_file() }} --list
6+
7+
paths filepath:
8+
#!/usr/bin/env bash
9+
set -eufo pipefail
10+
echo "filepath: {{ filepath }}"
11+
echo ""
12+
echo "absolute_path() : {{ absolute_path(filepath) }}"
13+
echo "canonicalize() : {{ canonicalize(filepath) }}"
14+
echo "extension() : {{ extension(filepath) }}"
15+
echo "file_name() : {{ file_name(filepath) }}"
16+
echo "file_stem() : {{ file_stem(filepath) }}"
17+
echo "parent_directory() : {{ parent_directory(filepath) }}"
18+
echo "without_extension() : {{ without_extension(filepath) }}"
19+
20+
21+

0 commit comments

Comments
 (0)