fix: truncate query from list view

they are shown below when verbose anyway
This commit is contained in:
əlemi 2024-10-20 15:32:30 +02:00
parent b6c7c88e5a
commit 37f4d6b607
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -64,7 +64,11 @@ impl PrintableResult for ListResult {
} }
for (name, endpoint) in collection.route { for (name, endpoint) in collection.route {
let url = endpoint.url(collection.client.as_ref().and_then(|x| x.base.as_deref())); let url = endpoint.url(collection.client.as_ref().and_then(|x| x.base.as_deref()))
.split('?')
.next()
.unwrap_or_default()
.to_string();
let method = endpoint.method.as_deref().unwrap_or("GET"); let method = endpoint.method.as_deref().unwrap_or("GET");
println!(" - {name} \t{method} \t{url}"); println!(" - {name} \t{method} \t{url}");
if ! compact { if ! compact {