jubarte-cli 0.19.0

The jubarte engine's command line: every operation of the library behind one clap surface, plus self-update
Documentation
// SPDX-FileCopyrightText: 2026 Jandira Technologies, LLC
//
// SPDX-License-Identifier: Apache-2.0

//! # jubarte-cli
//!
//! The jubarte engine's command line: every operation of the library behind
//! one clap surface - compare, changes, accept, reject, convert, diff, read,
//! edit, add, comments, append, validate, check, scrub, visual-diff,
//! capabilities, debug and `self-update` (behind its feature). This crate is
//! a library with no binary: the `jubarte` executable is built by the
//! facade crate `jubarte` (`cargo install jubarte`). `build.rs` stamps
//! `--version` with the source commit when the crate is built from this
//! repository, and nothing when it is built from an unpacked package inside
//! another repository.
//!
//! # Example
//!
//! ```rust
//! use jubarte_cli::cli::top_level_command;
//!
//! fn main() {
//!     // The full command tree needs more stack than the 1 MiB Windows gives
//!     // a main thread in a debug build; the `jubarte` binary also parses on
//!     // an 8 MiB thread.
//!     let parsed = std::thread::Builder::new()
//!         .stack_size(8 * 1024 * 1024)
//!         .spawn(|| {
//!             top_level_command()
//!                 .try_get_matches_from([
//!                     "jubarte", "compare", "old.docx", "new.docx", "-o", "redline.docx",
//!                 ])
//!                 .map(|m| m.subcommand_name().map(str::to_owned))
//!         })
//!         .expect("spawn the parsing thread")
//!         .join()
//!         .expect("the parsing thread does not panic");
//!     assert_eq!(parsed.expect("the arguments parse").as_deref(), Some("compare"));
//! }
//! ```

#![cfg_attr(all(coverage_nightly, test), feature(coverage_attribute))]
#![forbid(unsafe_code)]
#![warn(missing_docs)]

// A5 shims: every layer below under the names the moved code uses.
pub use jubarte_doc::comment_settlement;
#[cfg(feature = "render")]
pub use jubarte_doc::fields;
pub use jubarte_doc::{append, audit, changes, comments, debug, inspect, scrub, validate};
pub use jubarte_dom::{ids, namespaces, perf, unid, util, xmllinq};
pub use jubarte_edit::{capabilities, edit, markdown, result, text_diff};
// Host filesystem publication is unavailable to browser/WASM byte APIs
// (it is cfg'd out of jubarte-edit there).
#[cfg(not(target_arch = "wasm32"))]
pub use jubarte_edit::publication;
pub use jubarte_markdown::legacy_doc;
pub use jubarte_opc::{admission, opc, settings, strict_translation};
pub use jubarte_redlines::{document_comparer, revision_processor, wml_document};
#[cfg(feature = "render")]
pub use jubarte_render;

/// The `jubarte` command's parser and dispatch.
pub mod cli;
/// The typed inline CLI actions, compiled into plan contracts.
pub mod inline;
/// `jubarte self-update`: install a GitHub release, only when asked.
#[cfg(feature = "self-update")]
pub mod update;