Repository navigation
feat: add CLI command for partial document updates (#589) - #592
Merged
Merged
Conversation
- Add DocCommands::Update variant with --title, --content, --file, --tags, --metadata flags - Calls uteke_core::doc_update() directly for partial updates (title-only, tags-only, etc.) - Content changes trigger chunk rebuild; metadata/title-only skip it - Validates at least one field is provided - Parses --metadata as JSON string - Supports --file - for stdin content input - Document in docs/cli-reference.md with examples and flag table Closes #589
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
feat: add CLI command for partial document updates (#589)
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
Add dedicated
uteke doc updateCLI command for partial document updates, complementing the existingdoc create(which performs full content replacement via upsert).Problem
uteke doc createcan overwrite documents by slug, but performs full content replacement — not a partial updatePOST /doc/update(added in PR feat: POST /doc/update endpoint — partial document update with chunk rebuild #583) supports partial updates (title only, tags only, metadata only) with smart chunk rebuild only when content changesuteke doc updatecommand — users had to use the HTTP API directlyChanges
crates/uteke-cli/src/cli.rsDocCommands::Updatevariant with flags:--title,--content,--file,--tags,--metadatacrates/uteke-cli/src/commands/doc.rsDocCommands::Updatematch arm callinguteke.doc_update()directly--content>--file> stdin (--file -)docs/cli-reference.mduteke doc updatewith usage examples and flag tableVerification
cargo check -p uteke-cli✅cargo clippy -p uteke-cli --all-targets✅ (no issues)cargo fmt --all -- --check✅Closes #589