fix: truncate query from list view
they are shown below when verbose anyway
This commit is contained in:
parent
b6c7c88e5a
commit
37f4d6b607
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue