@chickencuber/cocl
v0.1.0
Published
COCL is a shell like config language similar to bash but doesn't run commands or have any fancy control flow it is designed to be lightweight though this implementation is not lightweight due to using an entire bash parser(because I'm lazy)
Readme
Command Oriented Config Language
COCL is a shell like config language similar to bash but doesn't run commands or have any fancy control flow
it is designed to be lightweight though this implementation is not lightweight due to using an entire bash parser(because I'm lazy)
Features
- heredocs
- multiline strings
Not Supported
- Command execution
- Control flow (
if,while,for, etc.) - Shell substitution
- Shell redirection (except heredocs)
- Pipelines
Example Cocl
set "username" "user"
write "message.txt" <<EOF
Hello user!
Welcome to COCL.
EOFimport {parse} from "cocl"
parse(source)// returns {command: string, argv: string[]}[]NOTE: cocl does NOT execute commands, it just gives a list of commands for the consumer program to give meaning to
