Repository navigation
Docs: the CLI-like API page shows a working, CI-run example (#98) - #127
Merged
Merged
Conversation
The page showed `mkdir /test/testable2 x y z` (mktbl's syntax) and no way to read a command's output. It now shows python/examples/example_cli_like_api.py verbatim: CliManager set up, mkdir, mktbl, add, vers and dump with the output captured as a string, an error caught as an exception, and a cleanup so it runs again. The Python examples workflow runs the example on Python 3.9; scripts/docs/test_cli_like_docs.py fails when the page's block and the file differ. Closes #98 Co-Authored-By: Claude Opus 5.5 <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.
The wiki page #98 names still shows
ConsoleContext; the docs page that replaced it (docs/apis/python-cli-like.md) had a wrong command (mkdir /test/testable2 x y z) and no way to read output.python/examples/example_cli_like_api.py: CliManager set up, mkdir, mktbl, add, vers and dump with output captured as a string, an error caught as an exception, cleanup so it runs again. Run twice on one database here.scripts/docs/test_cli_like_docs.pyfails if they drift.The wiki page itself gets a short pointer to the docs page (pushed to the wiki repository separately; wikis have no PRs).
Closes #98
🤖 Generated with Claude Code