code / tomo-shell

Lines59 Tomo32 Markdown24 INI3
(21 lines)

Shell

This module defines a lang for running shell scripts in Tomo:

# modules.ini
[shell]
version=1.0
git=https://github.com/bruce-hill/tomo-shell
use shell

>> $Shell"
    seq 5
    echo DONE
":get_output()
= "1$\n2$\n3$\n4$\n5$\nDONE"
1 # Shell
3 This module defines a `lang` for running shell scripts in
4 [Tomo](https://tomo.bruce-hill.com):
6 ```
7 # modules.ini
8 [shell]
9 version=1.0
10 git=https://github.com/bruce-hill/tomo-shell
11 ```
13 ```tomo
14 use shell
16 >> $Shell"
17 seq 5
18 echo DONE
19 ":get_output()
20 = "1$\n2$\n3$\n4$\n5$\nDONE"
21 ```