Sortable feature status list (#15150) (#15192)

(cherry picked from commit 88f22c360b)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-02-22 18:44:45 +00:00
committed by GitHub
parent 2ac95a3ebc
commit 8b80628b38

View File

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