1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// 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"));
//! }
//! ```
// A5 shims: every layer below under the names the moved code uses.
pub use comment_settlement;
pub use fields;
pub use ;
pub use ;
pub use ;
// Host filesystem publication is unavailable to browser/WASM byte APIs
// (it is cfg'd out of jubarte-edit there).
pub use publication;
pub use legacy_doc;
pub use ;
pub use ;
pub use jubarte_render;
/// The `jubarte` command's parser and dispatch.
/// The typed inline CLI actions, compiled into plan contracts.
/// `jubarte self-update`: install a GitHub release, only when asked.