Skip to content

Commit b912ffe

Browse files
committed
Add loops, files glob, tag function, more filesystem commands, conditional thingy, ctx variable, environment variable inheritance and common commands
1 parent c0f0c09 commit b912ffe

File tree

5 files changed

+308
-36
lines changed

5 files changed

+308
-36
lines changed

shell-language/Cargo.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shell-language/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ edition = "2024"
55
publish = false
66

77
[dependencies]
8+
glob = "0.3.2"

shell-language/examples/files.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
for files "examples/*.sh" each
2+
let content = read $file
3+
echo "---"
4+
echo $file
5+
echo $content
6+
echo "---"
7+
echo
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
for files "examples/*.sh" each
2+
let content = read $file
3+
let content = if_equal $file "examples/files.sh" $content
4+
echo $content

0 commit comments

Comments
 (0)