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

Function get_task_status_selector

crates/hyperqueue/src/common/cli.rs:54–60  ·  view source on GitHub ↗
(status_selector_arg: Vec<Status>)

Source from the content-addressed store, hash-verified

52}
53
54fn get_task_status_selector(status_selector_arg: Vec<Status>) -> TaskStatusSelector {
55 if status_selector_arg.is_empty() {
56 TaskStatusSelector::All
57 } else {
58 TaskStatusSelector::Specific(status_selector_arg)
59 }
60}
61
62/// Selects items with the following options:
63/// - "last" => only the last item

Callers 1

get_task_selectorFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected