Sortable feature status list (#15150)
This commit is contained in:
@ -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(),
|
||||||
|
Reference in New Issue
Block a user