info returns a snapshot of the process state.
()
| 48 | |
| 49 | // info returns a snapshot of the process state. |
| 50 | func (p *process) info() workspacesdk.ProcessInfo { |
| 51 | p.mu.Lock() |
| 52 | defer p.mu.Unlock() |
| 53 | |
| 54 | return workspacesdk.ProcessInfo{ |
| 55 | ID: p.id, |
| 56 | Command: p.command, |
| 57 | WorkDir: p.workDir, |
| 58 | Background: p.background, |
| 59 | Running: p.running, |
| 60 | ExitCode: p.exitCode, |
| 61 | StartedAt: p.startedAt, |
| 62 | ExitedAt: p.exitedAt, |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | // output returns the truncated output from the process buffer |
| 67 | // along with optional truncation metadata. |
no test coverage detected