An open API service indexing awesome lists of open source software.

https://github.com/xorkevin/nutcracker

a simple shell parsing library
https://github.com/xorkevin/nutcracker

Last synced: 3 months ago
JSON representation

a simple shell parsing library

Awesome Lists containing this project

README

        

# nutcracker

a simple shell parsing and execution engine

### Features

nutcracker can parse a subset of shell commands as detailed below:

#### Environment variables

```bash
echo $HOME ${ENVVAR:-default value}
```

#### Command substitution

```bash
echo $(cat file.txt)
```

#### String variable interpolation

```bash
"$(echo hello) $HOME ${ENVVAR:-default value}"
```