13
13
14
14
use Symfony \Component \Console \Attribute \AsCommand ;
15
15
use Symfony \Component \Console \Command \Command ;
16
+ use Symfony \Component \Console \Cursor ;
16
17
use Symfony \Component \Console \Input \InputArgument ;
17
18
use Symfony \Component \Console \Input \InputInterface ;
18
19
use Symfony \Component \Console \Output \OutputInterface ;
@@ -64,7 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
64
65
65
66
[$ fullName , $ prefix , $ name ] = $ matches ;
66
67
67
- $ io ->comment (sprintf ('Importing <info>%s</info> ... ' , $ fullName ));
68
+ $ io ->comment (sprintf ('Importing %s ... ' , $ fullName ));
68
69
69
70
try {
70
71
$ svg = $ this ->iconify ->fetchSvg ($ prefix , $ name );
@@ -75,13 +76,17 @@ protected function execute(InputInterface $input, OutputInterface $output): int
75
76
continue ;
76
77
}
77
78
79
+ $ cursor = new Cursor ($ output );
80
+ $ cursor ->moveUp (2 );
81
+
78
82
$ this ->registry ->add (sprintf ('%s/%s ' , $ prefix , $ name ), $ svg );
79
83
80
84
$ license = $ this ->iconify ->metadataFor ($ prefix )['license ' ];
81
85
82
86
$ io ->text (sprintf (
83
- "Imported <info>%s</info> (License: <href=%s>%s</>), render with <comment>{{ ux_icon('%s') }}</comment>. " ,
84
- $ fullName ,
87
+ " <fg=bright-green;options=bold>✓</> Imported <fg=bright-white;bg=black>%s:</><fg=bright-magenta;bg=black;options>%s</> (License: <href=%s>%s</>). Render with: <comment>{{ ux_icon('%s') }}</comment> " ,
88
+ $ prefix ,
89
+ $ name ,
85
90
$ license ['url ' ],
86
91
$ license ['title ' ],
87
92
$ fullName ,
0 commit comments