Sortable feature status list (#15150)

This commit is contained in:
Jack May 2021-02-08 12:08:29 -08:00 committed by GitHub
parent 440c479529
commit 88f22c360b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ impl fmt::Display for CliFeatures {
f,
"{}",
style(format!(
"{:<44} {:<28} {}",
"{:<44} | {:<27} | {}",
"Feature", "Status", "Description"
))
.bold()
@ -79,7 +79,7 @@ impl fmt::Display for CliFeatures {
for feature in &self.features {
writeln!(
f,
"{:<44} {:<28} {}",
"{:<44} | {:<27} | {}",
feature.id,
match feature.status {
CliFeatureStatus::Inactive => style("inactive".to_string()).red(),