fix: remove .toml from names, only 1 colon as sep

This commit is contained in:
əlemi 2024-10-21 16:16:32 +02:00
parent debccaf195
commit d504c650dd
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -160,7 +160,7 @@ async fn run_collection_endpoints(
let task = async move { let task = async move {
let before = chrono::Local::now(); let before = chrono::Local::now();
eprintln!(" : [{}] {_namespace}::{name} \tsending request...", before.format(fmt::TIMESTAMP_FMT)); eprintln!(" : [{}] {_namespace}:{name} \tsending request...", before.format(fmt::TIMESTAMP_FMT));
let res = if dry_run { let res = if dry_run {
Ok("".to_string()) Ok("".to_string())
@ -211,7 +211,7 @@ fn load_collections(store: &mut IndexMap<String, PostWomanCollection>, mut path:
}, },
}; };
let name = path.to_string_lossy().to_string(); let name = path.to_string_lossy().replace(".toml", "");
let mut to_include = Vec::new(); let mut to_include = Vec::new();
if let Some(ref includes) = collection.include { if let Some(ref includes) = collection.include {