Skip to main content

flatten_targets

Function flatten_targets 

Source
pub fn flatten_targets(values: &[String]) -> Vec<String>
Expand description

Split every target argument the user typed into individual targets

A command takes its targets as separate arguments, and a value may still be a comma-separated list, so each value goes through parse_targets.

Examples: [“123”, “:3000,:8080”, “node”] -> [“123”, “:3000”, “:8080”, “node”]