pub async fn values_vs_region(
    svc: &str,
    conf: &Config,
    region: &Region,
    ref_region: &Region,
) -> Result<bool> {
    let before_region = format!("{}.{}", svc, ref_region.name);
    let before_values = as_yaml(svc, conf, ref_region).await?;

    let after_region = format!("{}.{}", svc, region.name);
    let after_values = as_yaml(svc, conf, region).await?;

    // display diff
    shell_diff(&before_values, &after_values, &before_region, &after_region)
}
/// Fast local compare of shipcat template for two regions
Fast local compare of shipcat template for two regions
Fast local compare of shipcat template for two regions
pub async fn values_vs_region(
    svc: &str,
    conf: &Config,
    region: &Region,
    ref_region: &Region,
) -> Result<bool> {
    let before_region = format!("{}.{}", svc, ref_region.name);
    let before_values = as_yaml(svc, conf, ref_region).await?;
    let after_region = format!("{}.{}", svc, region.name);
    let after_values = as_yaml(svc, conf, region).await?;
    // display diff
    shell_diff(&before_values, &after_values, &before_region, &after_region)
}
pub async fn values_vs_region ( svc : & str , conf : & Config , region : & Region , ref_region : & Region , ) -> Result < bool > { let before_region = format ! ( " " svc ref_region name ) ; let before_values = as_yaml ( svc , conf , ref_region ) . await ? ; let after_region = format ! ( " " svc region name ) ; let after_values = as_yaml ( svc , conf , region ) . await ? ; // display diff shell_diff ( & before_values , & after_values , & before_region , & after_region ) }
Fast local compare of shipcat template for two regions
Fast local compare of shipcat template for two regions
svc
&str
conf
&Config
region
&Region
ref_region
&Region
svc
&str
conf
&Config
region
&Region
ref_region
&Region