Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.git

cd rust-pstree && cargo build
```

```shell
rspstree --help

USAGE:
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