-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ps: Add command ps
#133
ps: Add command ps
#133
Conversation
This command is very complex and flexible (the manpage has 790~830 lines in total), so for now only the most basic functions are implemented :( |
That's fine :) |
f5672ac
to
fd85d53
Compare
Introduce `uu_pgrep` for processing processes, and introduce `prettytable-rs` for output.
I noticed you made some refactorings to |
Remove TODO in `mapping.rs` and add TODO in `collector.rs`
This comment was marked as resolved.
This comment was marked as resolved.
Another bug I noticed is that the header row is empty if there are no options:
|
Fixed ❯ cargo run ps
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
Running `target/debug/procps ps`
PID TTY TIME CMD
5392 pts/0 00:00:01 zsh
5415 pts/0 00:00:00 zsh
5462 pts/0 00:00:00 zsh
5463 pts/0 00:00:00 zsh
5465 pts/0 00:00:00 gitstatusd-linu
766725 pts/0 00:00:00 procps ❯ ps
PID TTY TIME CMD
5392 pts/0 00:00:10 zsh
5415 pts/0 00:00:00 zsh
5462 pts/0 00:00:00 zsh
5463 pts/0 00:00:01 zsh
5465 pts/0 00:00:07 gitstatusd-linu
766859 pts/0 00:00:00 ps |
But only implemented the basic usage: sorting by pid.
- Rename `sorting` to `sort` - Rename `default_sort` to `sort_by_pid`
Thanks :) |
fix #102