Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sword-jin/rust-pstree
rewrite pstree using rust
https://github.com/sword-jin/rust-pstree
Last synced: about 2 months ago
JSON representation
rewrite pstree using rust
- Host: GitHub
- URL: https://github.com/sword-jin/rust-pstree
- Owner: sword-jin
- Created: 2021-07-14T09:52:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-14T10:01:05.000Z (over 3 years ago)
- Last Synced: 2023-11-07T13:34:49.842Z (about 1 year ago)
- Language: Rust
- Size: 554 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rspstree
![](./assets/pic1.png)
implement [pstree](https://man7.org/linux/man-pages/man5/proc.5.htm) using rust.
using [clap](https://github.com/clap-rs/clap) for POSIX Compatible
## install
```bash
git clone [email protected]:rrylee/rust-pstree.gitcd rust-pstree && cargo build
``````shell
rspstree --helpUSAGE:
rspstree [FLAGS] [PID]ARGS:
start at this PID; default is 1 (init)FLAGS:
-h, --help
Prints help information-p, --show-pgids
Show PIDs. PIDs are shown as decimal numbers in parentheses after each process name.
-p implicitly disables compaction.-v, --verbose
Enable verbose mode.-V, --version
Prints version information
```## TODO
- [ ] pthread
- [ ] merge simple process