Repository navigation
docs: add env-fallback example with interactive playground - #31
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ound
- examples/env_fallback.cc: threads (NUM_THREADS, range<1,32>),
config (CONFIG_FILE, matches<*.toml>), verbose (VERBOSE flag)
- ExamplePlayground: add initialEnv prop with editable env-var table;
inject via ccall('setenv') before callMain
- CSS: pg-env-panel styles; fix cursor blink to animate background only
- exampleSetups: setupEnvFallbackFs creates /job.toml and /configs/prod.toml
- docs/examples/env-fallback.mdx: example page with interactive playground
- docs/examples/index.mdx: add env-fallback to TOC
- parser.hh: prefix missing_required subject with '--'
- test_parse.cc, test_sugar.cc: update subject assertions to '--option'
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ig files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/env_fallback.cc: demonstrates--threads(NUM_THREADS, range<1,32>),--config(CONFIG_FILE, matches<*.toml>), and--verbose(VERBOSE flag) with env-var fallbackdocs/examples/env-fallback.mdxwith an interactive playground featuring an editable environment-variable table above the terminalExamplePlayground: newinitialEnvprop renders a key=value editor panel; env vars are injected viaccall('setenv')beforecallMain(requires_setenv+ccallinEXPORTED_FUNCTIONS/EXPORTED_RUNTIME_METHODS)backgroundonly so the character under the cursor stays visibleparser.hh: prefixmissing_requirederror subject with--(e.g.--threadsinstead ofthreads); update affected tests🤖 Generated with Claude Code