cromwell icon indicating copy to clipboard operation
cromwell copied to clipboard

implement a command about show container process.

Open guni1192 opened this issue 6 years ago • 0 comments

Now, $ cromwell ps is implemented by super::pids::{Pidfile, show}. But the state of pids::Pidfile overlaps with process::Process. I proposal follow.

pub enum State {
  Created
  Running
  Pausing
  Paused
  Stopped
}

pub enum Status {
  state: State
  pid: Pid
}

pub struct Container {
// ...
  status: Status
}

impl Container {
// ...

  // get all container process 
  fn processes() -> [Pid] {}

  // return process state
  fn status(&self) -> Status {}
}

guni1192 avatar Apr 21 '19 16:04 guni1192