File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
cli/src/commands/extensions Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use std::fs;
44use std:: io:: ErrorKind ;
55use std:: path:: PathBuf ;
66
7+ use ansi_term:: Color ;
78use anyhow:: { anyhow, Context , Result } ;
89use clap:: { arg, ArgMatches , Command , ValueHint } ;
910use futures:: future:: BoxFuture ;
@@ -171,9 +172,12 @@ async fn handle_list_extensions() -> CommandResult {
171172 if extensions. is_empty ( ) {
172173 println ! ( "No extensions are currently installed." ) ;
173174 } else {
174- extensions. into_iter ( ) . for_each ( |ext| {
175- println ! ( "{:20} {}" , ext. name( ) , ext. description( ) . unwrap_or( "" ) ) ;
176- } ) ;
175+ let heading = Color :: Blue . paint ( "Extension Name Description" ) ;
176+ println ! ( "{heading}" ) ;
177+
178+ for extension in extensions {
179+ println ! ( "{:20} {}" , extension. name( ) , extension. description( ) . unwrap_or( "" ) ) ;
180+ }
177181 }
178182
179183 Ok ( CommandValue :: Code ( ExitCode :: Ok ) )
You can’t perform that action at this time.
0 commit comments