vtcode_bash_runner/
lib.rs1#![allow(
2 missing_docs,
3 dead_code,
4 unused_imports,
5 reason = "Intentional compatibility, platform, or test-only suppression."
6)]
7#![expect(
8 unused_results,
9 clippy::let_underscore_must_use,
10 clippy::indexing_slicing,
11 reason = "Process wrappers intentionally detach best-effort tasks, use OS process IDs, and configure commands through bounded builder APIs."
12)]
13#![cfg_attr(
14 unix,
15 expect(
16 clippy::cast_possible_wrap,
17 reason = "Process wrappers intentionally detach best-effort tasks, use OS process IDs, and configure commands through bounded builder APIs."
18 )
19)]
20pub mod background;
37pub mod executor;
38pub mod pipe;
39pub mod policy;
40pub mod process;
41pub mod process_group;
42pub mod runner;
43pub mod stream;
44
45pub use background::{BackgroundCommandManager, BackgroundTaskHandle, BackgroundTaskStatus};
47
48#[cfg(feature = "dry-run")]
50pub use executor::DryRunCommandExecutor;
51#[cfg(feature = "exec-events")]
52pub use executor::EventfulExecutor;
53#[cfg(feature = "std-process")]
54pub use executor::ProcessCommandExecutor;
55#[cfg(feature = "pure-rust")]
56pub use executor::PureRustCommandExecutor;
57pub use executor::{CommandCategory, CommandExecutor, CommandInvocation, CommandOutput, CommandStatus, ShellKind};
58
59pub use policy::{AllowAllPolicy, CommandPolicy, WorkspaceGuardPolicy};
61
62pub use runner::BashRunner;
64
65pub(crate) use stream::{ReadLineResult, read_line_with_limit};
67
68pub use pipe::{
70 PipeSpawnOptions, PipeStdinMode, spawn_process as spawn_pipe_process,
71 spawn_process_no_stdin as spawn_pipe_process_no_stdin,
72 spawn_process_with_options as spawn_pipe_process_with_options,
73};
74
75pub use process::{
77 ChildTerminator, ExecCommandSession, ProcessHandle, PtyHandle, PtyHandles, SpawnedProcess, SpawnedPty,
78 collect_output_until_exit,
79};
80
81pub use process_group::{
83 DEFAULT_GRACEFUL_TIMEOUT_MS, GracefulTerminationResult, KillSignal, detach_from_tty, graceful_kill_process_group,
84 graceful_kill_process_group_default, graceful_kill_process_group_default_async, kill_child_process_group,
85 kill_child_process_group_with_signal, kill_process_group, kill_process_group_by_pid,
86 kill_process_group_by_pid_with_signal, kill_process_group_with_signal, set_parent_death_signal, set_process_group,
87};
88
89#[cfg(windows)]
90pub use process_group::kill_process;