Skip to main content

group_order

Function group_order 

Source
pub fn group_order(text: &str) -> Vec<String>
Expand description

The groups in the order just --groups --unsorted printed them.

use majordomus_cli::environment::workflows::group_order;
let text = "Recipe groups:\n    build\n    serve\n    test\n";
assert_eq!(group_order(text), ["build", "serve", "test"]);