site: update playground demo to the post-0.10.0 CLI surface - #227
Merged
Conversation
The autoplayed demo still ran the removed `query dead-ends` subcommand, which the current wasm binary rejects as an undefined jaq filter. Replace it with the equivalent jq-filter query, and update the help builtin to the `path p …` plumbing spellings and filter examples.
|
🔍 Preview deployed: https://f75614c0.toolpath.pages.dev |
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.
The wasm playground's scripted demo and
helpbuiltin still used the pre-0.10.0 command surface, while the shipped wasm binary is current — so the autoplayedpath query dead-ends …failed withundefined filter: dead / endsfor every visitor.path query --input path-01-pr.path.json --pretty 'map(select(.dead_end)) | map(.step.id)', which prints["step-002a"]against the preloaded example.helpbuiltin now listspath p validate,path query --input <file> '<filter>'(with dead-end and actor-filter jaq examples),path p query ancestors,path p render dot, andpath p merge.Verified in a headless browser against the built site: the demo completes with the expected output and the help listing renders aligned; the site's markdown pages were already on the new syntax.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.