Skip to content

Commit 04b84de

Browse files
Add initial column implementation for psq
1 parent e131a70 commit 04b84de

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/psq/columns.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// FIXME: This may be better in procps
2+
enum PidColumns {
3+
// Columns go here
4+
}
5+
6+
// Implement FromStr to allow parsing a list of columns specified by a user
7+
// impl FromStr for PidColumns {
8+
9+
10+
// Implement ToStr to get a list of columns specified by a user
11+
// impl ToStr for PidColumns {

src/psq/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ use procrs::pid::*;
1212
use procrs::TaskId;
1313
use argparse::{ArgumentParser, StoreTrue, Store};
1414

15+
mod columns;
16+
1517
fn main() {
1618
let opts = parse_args();
1719
let (query, long, perf, verbose, tree, threads) =

0 commit comments

Comments
 (0)