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
- Host: GitHub
- URL: https://github.com/xorkevin/nutcracker
- Owner: xorkevin
- License: mpl-2.0
- Created: 2019-06-05T21:02:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T07:48:40.000Z (almost 6 years ago)
- Last Synced: 2025-01-05T17:31:08.406Z (4 months ago)
- Language: Go
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}"
```