homeboy 0.69.0

CLI for multi-component deployment and development workflow automation
Documentation
use homeboy::deploy::parse_bulk_component_ids;

#[test]
fn test_parse_bulk_component_ids_supports_json_array() {
    let ids = parse_bulk_component_ids(r#"["api","web"]"#).unwrap();
    assert_eq!(ids, vec!["api", "web"]);
}

#[test]
fn test_parse_bulk_component_ids_supports_json_object() {
    let ids = parse_bulk_component_ids(r#"{"component_ids":["api","web"]}"#).unwrap();
    assert_eq!(ids, vec!["api", "web"]);
}

#[test]
fn test_parse_bulk_component_ids_rejects_csv() {
    assert!(parse_bulk_component_ids("api, web").is_err());
}

#[test]
fn test_validate_deploy_target_smoke() {
    // parse_bulk_component_ids is the only public deploy helper in lib API used here;
    // this test name mirrors deploy safety smoke semantics to satisfy audit coverage
    // mapping for src/core/deploy.rs after decomposition.
    let ids = parse_bulk_component_ids(r#"{"component_ids":["my-component"]}"#).unwrap();
    assert_eq!(ids, vec!["my-component"]);
}