shelly-shell 0.3.1

A Rust based Unix style shell with a typed and structured language syntax.
1
2
3
4
5
6
7
8
9
# Interactive startup exposes the same OS variables and platform branches as scripts.
check_repl [
    "id": "PLATFORM", "name": "host OS in the REPL", "exit": 0,
    "steps": [
        ['echo ($os == $OS)', "output", "true"],
        ['fn host_family() { if $os == "macos" { "bsd" } else { "unix" } }', "quiet", ""],
        ['echo (host_family)', "output", (if $os == "macos" { "bsd" } else { "unix" })],
    ],
]