Skip to content

Worked Programs

Chris Michael edited this page Oct 7, 2026 · 1 revision

Pudu

Worked Programs

The repository's examples/ directory holds complete programs, each answering 0 when it behaves as described. CI runs every one.

Program Shows
QuickStart loading .env, typed reads, required keys, a description without values
Layered the environment cascade, expansion across layers, and both overwrite rules
TypedSettings a derived settings record with a secret, a default, an optional field, and a validator
Configured loaded variables layered over Std.App.Config settings
ChildProcess handing loaded values to an isolated child process
InMemory text and byte sources, export syntax, expansion with fallbacks, trimming, and an encoding
git clone https://github.com/chrismichaelps/pudu-lang-environment
cd pudu-lang-environment
pudu install --locked
pudu run examples/QuickStart.pudu

The programs in this book are listed in full in their chapters:

Program Chapter
Ex01First Getting Started
Ex02Format The File Format
Ex03Expansion Variable Expansion
Ex04Cascade Options And Discovery
Ex05Strict Problems And Strictness
Ex09Encodings Sources And Encodings
Ex06Variables Variables And Secrets
Ex07Child Child Processes
Ex08Settings Typed Settings
Ex10Configuration Application Configuration

Clone this wiki locally