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
//! Command-line entry points for the rspyts build orchestrator.
//!
//! The crate is organized as a small compiler pipeline:
//!
//! - `config` and `cargo` resolve authoritative user and workspace inputs;
//! - `project` builds the synthetic bridge and validates the discovered IR;
//! - `python` and `typescript` lower that IR into host packages;
//! - `output` owns collision checks and transactional publication;
//! - `cli` and `commands` provide the process-facing interface.
//!
//! This module owns only the process and embeddable I/O boundaries.
use OsString;
use ;
use Result;
use Parser;
use Cli;
/// Parse the current process arguments and run the selected command.
///
/// Normal command output is written to stdout. Recoverable watch failures are
/// written to stderr; fatal errors are returned to the binary entry point.
///
/// # Errors
///
/// Returns an error when command input is invalid or a requested operation
/// fails.
/// Parse explicit arguments and run a command with caller-provided output.
///
/// This entry point is intended for integrations that need deterministic
/// argument and output boundaries without replacing global process state.
/// Include the binary name as the first argument, just as with
/// [`std::env::args_os`].
///
/// # Errors
///
/// Returns a clap parsing error for invalid arguments, or the command error
/// when execution fails.