← All languages

wildling

Pattern-based string generator library and CLI using POSIX sh + awk only (no bashisms, no jq, no Python).

Example

Install

From this repository:

cd posix-shell
./build.sh
./bin/wildling "Year 19##"

From a release tag:

git clone --branch v2.0.0 --depth 1 https://github.com/dotmonk/wildling.git
cd wildling
./build.sh posix-shell

As a library:

. lib/wildling.sh
_wildling_parse_args "Year 19##"
_wildling_run_engine

Or use the programmatic helpers after sourcing lib/wildling.sh.

CLI

./bin/wildling "Year 19##"
./bin/wildling --dictionary planets:../dictionaries/planets.txt "%{'planets'}"
./bin/wildling --template ./config.json

Help text and --check output follow docs/cli.md / docs/help.txt.

Build

./build.sh   # Docker: copy help.txt + sh -n syntax check

Project tests live in ../tests/ and are run with ../test.sh.

Stack