MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / format_task_paths

Function format_task_paths

crates/hyperqueue/src/client/output/cli.rs:1602–1611  ·  view source on GitHub ↗

Returns (working directory, stdout, stderr)

(task_map: &TaskToPathsMap, task_id: JobTaskId)

Source from the content-addressed store, hash-verified

1600
1601/// Returns (working directory, stdout, stderr)
1602fn format_task_paths(task_map: &TaskToPathsMap, task_id: JobTaskId) -> (&str, &str, &str) {
1603 match task_map[&task_id] {
1604 Some(ref paths) => (
1605 paths.cwd.to_str().unwrap(),
1606 stdio_to_str(&paths.stdout),
1607 stdio_to_str(&paths.stderr),
1608 ),
1609 None => ("", "", ""),
1610 }
1611}
1612
1613fn format_task_duration(start: Option<DateTime<Utc>>, end: Option<DateTime<Utc>>) -> String {
1614 match (start, end) {

Callers 1

print_task_infoMethod · 0.85

Calls 2

stdio_to_strFunction · 0.85
to_strMethod · 0.80

Tested by

no test coverage detected