Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Unindent top level separator
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper committed Oct 21, 2019
1 parent 3f78a0d commit c5e29eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/settings/target/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,20 @@ impl TemplateConfig {
}
}
}
let separator = "\n - ";
let top_level_separator = "\n- ";
let env_separator = "\n - ";
if !top_level_fields.is_empty() || !env_fields.is_empty() {
message::warn("Replace all account specific info in your wrangler.toml.");
message::warn(
"Your zone_id and account_id can be found in the right sidebar at https://dash.cloudflare.com\n",
"Your zone_id and account_id can be found in the right sidebar at https://dash.cloudflare.com",
);
if !top_level_fields.is_empty() {
let msg_prefix = "Top level fields";
let top_level_fields = top_level_fields
.clone()
.into_iter()
.collect::<Vec<String>>()
.join(separator);
println!("{}{}{}", msg_prefix, separator, top_level_fields);
.join(top_level_separator);
println!("{}{}", top_level_separator, top_level_fields);
}
if !env_fields.is_empty() {
for (env_name, env_fields) in env_fields {
Expand All @@ -143,8 +143,8 @@ impl TemplateConfig {
.clone()
.into_iter()
.collect::<Vec<String>>()
.join(separator);
println!("{}{}{}", msg_prefix, separator, env_fields);
.join(env_separator);
println!("{}{}{}", msg_prefix, env_separator, env_fields);
}
}
}
Expand Down

0 comments on commit c5e29eb

Please sign in to comment.