jubarte-cli
The command-line layer of the jubarte DOCX engine: the
clap declarations of every jubarte command (compare, changes, accept,
reject, convert, diff, read, edit, add, comments, append, validate, check,
scrub, visual-diff, capabilities, debug, self-update), their argument
parsing, the typed inline edit actions, and the self-update installer.
This crate is a library. It has no binary: the jubarte executable is built
by the facade crate. To install the command line, run
cargo install jubarte, or see the
install options for prebuilt binaries.
Where it sits
jubarte-dom → jubarte-opc → jubarte-redlines / jubarte-render →
jubarte-doc / jubarte-markdown / jubarte-edit → jubarte-cli → jubarte
jubarte-cli sits on every other jubarte crate and is the top layer below
the facade jubarte, whose binary drives it.
When to use this crate
Depend on jubarte-cli to embed jubarte's command grammar in another tool:
parse the same arguments, render the same help, or build edit plans from the
same flags. To call the engine from Rust, depend on the facade crate jubarte or a product
crate instead.
Install
or in Cargo.toml:
[]
= "0.19.0"
The jubarte crates are released together at one version and pin each other exactly, so depend on the same version of every jubarte crate you use. Minimum supported Rust version: 1.94.
Cargo features
None is on by default (the facade's binary turns on both).
| Feature | What it adds |
|---|---|
render |
The layout-dependent surface through jubarte-render (and the render features of jubarte-doc, jubarte-markdown and jubarte-edit): the fields and jubarte_render re-exports and parse-time checking of --revision-palette specs. |
self-update |
The update module behind jubarte self-update: finds a GitHub release, checks its SHA-256 and signature, and replaces the binary. Pulls in self_update and ed25519-dalek. |
Example
use top_level_command;
Modules
cli: the command declarations (Cli,Command,top_level_command) and their parsing helpers.inline: compiles one typed inline action (-p p12 --anchor …) into an edit plan.update:jubarte self-update(self-updatefeature).- Re-exported for the command implementations:
edit,markdown,capabilities,result,text_diffandpublication(jubarte-edit);legacy_doc(jubarte-markdown);changes,comments,comment_settlement,validate,audit,scrub,append,fields,inspectanddebug(jubarte-doc);document_comparer,revision_processorandwml_document(jubarte-redlines);jubarte_render(renderfeature);opc,admission,settingsandstrict_translation(jubarte-opc);xmllinq,namespaces,ids,unid,perfandutil(jubarte-dom).
License
Apache-2.0. NOTICE carries the attributions of the projects this code derives from.
Links
- API reference: docs.rs/jubarte-cli
- Guide: jubarte-cli on ReadTheDocs, part of the jubarte documentation
- Repository: github.com/jandira-tech/jubarte (this crate)
- Command line: the CLI reference of the root README
- Changes: CHANGELOG.md