Skip to content

Commit

Permalink
Add some more languages
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Sep 13, 2024
1 parent 8ec2cca commit 3c74bd6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions testdata/script/shebang.txtar
Original file line number Diff line number Diff line change
@@ -1,16 +1,39 @@
env PATH=/usr/bin/:$PATH
exec runme run py-test
stdout 'Hello, runme, from python!'
! stderr .

env PATH=/usr/bin/:$PATH
exec runme run rb-test
stdout 'Hello, runme, from ruby!'
! stderr .

exec runme run sh-test
stdout 'Hello, runme, from shell!'
! stderr .

env PATH=/opt/homebrew/bin:$PATH
exec runme run js-test
stdout 'Hello, runme, from javascript!'
! stderr .

-- SHEBANG.md --
---
shell: bash
---

```py {"name":"py-test"}
print("Hello, runme, from python!")
```

```rb {"name":"rb-test"}
print("Hello, runme, from ruby!")
```

```sh {"name":"sh-test"}
echo "Hello, runme, from shell!"
```

```js {"name":"js-test"}
console.log("Hello, runme, from javascript!")
```

0 comments on commit 3c74bd6

Please sign in to comment.