diff options
| author | diogo464 <[email protected]> | 2025-06-19 08:52:20 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-06-19 08:52:20 +0100 |
| commit | 39b3d9bfd499e131fd8a9bd1bf0021b62ec18c53 (patch) | |
| tree | 9975c7d92f28ed19edc370c7e11473f56334629c /Cargo.toml | |
Initial implementation of demon CLI tool
Implement complete daemon process management CLI with the following features:
- demon run: spawn background processes with stdout/stderr redirection
- demon stop: graceful process termination with SIGTERM/SIGKILL timeout
- demon tail: real-time file watching and log tailing
- demon cat: display log file contents
- demon list: show all managed processes with status
- demon status: detailed process information
- demon clean: remove orphaned files from dead processes
Technical implementation:
- Uses clap for CLI with enum-based subcommands
- Structured logging with tracing crate
- File watching with notify crate for efficient tailing
- Process management with proper signal handling
- Creates .pid, .stdout, .stderr files in working directory
- Comprehensive error handling and edge case coverage
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..f22a42a --- /dev/null +++ b/Cargo.toml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | [package] | ||
| 2 | name = "demon" | ||
| 3 | version = "0.1.0" | ||
| 4 | edition = "2024" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | anyhow = "1.0.98" | ||
| 8 | clap = { version = "4.5.40", features = ["derive"] } | ||
| 9 | ctrlc = "3.4.7" | ||
| 10 | glob = "0.3.2" | ||
| 11 | notify = "8.0.0" | ||
| 12 | tracing = "0.1.41" | ||
| 13 | tracing-subscriber = "0.3.19" | ||
