mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 10:14:12 -05:00
Rendering a prompt meant going through the CLI: cobra flags, a terminal UI, an environment that probes git and cloud tooling on every segment. Nothing else could ask for a rendered prompt, and nothing could ask for one that touches nothing. A render package takes a config, data and options, and returns the run stream. The CLI becomes one caller of it; a WebAssembly entry point becomes another, which is what lets a browser render a prompt with no server and no machine behind it. DataOnly moves onto the environment rather than sitting beside it as a flag the call sites had to remember to check. A data-only render still derives what it can from the data it was given instead of reporting every segment absent, so a recorded file renders the same prompt it recorded. The terminal UI leaves the core packages so the wasm build does not pull a TUI toolkit into the browser bundle, and the retired PNG renderer's image package and its dependencies go with it. Entire-Checkpoint: 603a21cafec5
Website
This website is built using Docusaurus, a modern static website generator.
Installation
npm install
Local Development
npm run start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.