proc_cli/lib.rs
1#![warn(missing_docs)]
2//! # proc - Semantic Process Management CLI
3//!
4//! Semantic CLI tool for process management. Target by port, PID, name or path.
5//!
6//! ## Features
7//!
8//! - **Unified Targets**: `:port`, `PID`, and `name` work the same everywhere
9//! - **Multi-Target**: `proc kill :3000,:8080,node` - comma-separated targets
10//! - **Query Language**: `proc by node --in .` - composable filters
11//! - **Cross-Platform**: macOS, Linux, and Windows
12//! - **Shell Completions**: bash, zsh, fish via `proc completions`
13//! - **Man Pages**: `proc manpage` generates documentation
14//!
15//! ## Quick Start
16//!
17//! ```bash
18//! # What's on port 3000?
19//! proc on :3000
20//!
21//! # Kill multiple targets
22//! proc kill :3000,:8080,node -y
23//!
24//! # Node processes in current directory
25//! proc by node --in .
26//!
27//! # Preview before killing
28//! proc kill node --dry-run
29//!
30//! # Generate shell completions
31//! proc completions zsh > ~/.zsh/completions/_proc
32//! ```
33//!
34//! ## Commands
35//!
36//! **Discovery**: `on`, `by`, `in`, `list`, `info`, `ports`, `tree`, `stuck`
37//!
38//! **Lifecycle**: `kill`, `stop`, `unstick`
39//!
40//! **Tooling**: `completions`, `manpage`
41
42pub mod commands;
43pub mod core;
44pub mod error;
45pub mod ui;
46
47pub use error::{ProcError, Result};
48
49/// Library version
50pub const VERSION: &str = env!("CARGO_PKG_VERSION");