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

Function get_task_selector

crates/hyperqueue/src/common/cli.rs:41–46  ·  view source on GitHub ↗
(opt_task_selector_arg: Option<TaskSelectorArg>)

Source from the content-addressed store, hash-verified

39}
40
41pub fn get_task_selector(opt_task_selector_arg: Option<TaskSelectorArg>) -> Option<TaskSelector> {
42 opt_task_selector_arg.map(|arg| TaskSelector {
43 id_selector: get_task_id_selector(arg.tasks),
44 status_selector: get_task_status_selector(arg.task_status),
45 })
46}
47
48pub fn get_task_id_selector(id_selector_arg: Option<IntArray>) -> TaskIdSelector {
49 id_selector_arg

Callers 2

command_job_catFunction · 0.85
command_task_listFunction · 0.85

Calls 2

get_task_id_selectorFunction · 0.85
get_task_status_selectorFunction · 0.85

Tested by

no test coverage detected