parse_targets_file

Function parse_targets_file 

Source
pub fn parse_targets_file(path: &Path) -> Result<Vec<TargetConfig>>
Expand description

Parse a targets file and return a vector of TargetConfig

Automatically detects the format based on file extension and content:

  • .json files are parsed as JSON
  • Other files are parsed as simple text (one target per line)