Skip to content

Commit

Permalink
(docs): add simple example for shebang support across some common lan…
Browse files Browse the repository at this point in the history
…guages
  • Loading branch information
christian-bromann committed Jul 31, 2023
1 parent 192e85f commit d65396e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions examples/shebang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Runme Language Support

By default Runme can run everything that is also installed on your machine.

## Like Python:

```py
print("Hello Pythonista 🐍")
```

## maybe Ruby?

```rb
puts "Hello Ruby ♦️"
```

## or JavaScript:

```js
console.log("Always bet on JS!")
```

## even TypeScript:

Make sure you have `ts-node` installed globally:

```sh
npm i -g ts-node
```

then run:

```ts
const myVar: string = 'I am a typed string!'
console.log(myVar)
```

## Java

```java
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
```

0 comments on commit d65396e

Please sign in to comment.