-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(docs): add simple example for shebang support across some common lan…
…guages
- Loading branch information
1 parent
192e85f
commit d65396e
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!"); | ||
} | ||
} | ||
``` |