ux
ux copied to clipboard
[Icons] New console command to manage local icons.
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | yes |
| Deprecations? | no |
| Documentation? | yes |
| Issues | # |
| License | MIT |
Summary
This PR introduces a new Symfony console command ux:icons:manage, designed to simplify the management of locally stored icons within the project.
It provides flexible options to list, group, and safely remove unused icons.
Usage Examples
# Lists all icons found in the local icon directory.Can be combined with `--table` or `--group`
$ php bin/console ux:icons:manage --list
# List all unused Icons in templates. Can be combined with `--table` or `--group`
$ php bin/console ux:icons:manage --list --unused
# Removes a specific icon by name (2 methods)
$ php bin/console ux:icons:manage --remove=flowbite:user-solid
$ php bin/console ux:icons:manage --remove user-profile
# Deletes all icons that are not detected as used in templates. (Use with caution)
$ php bin/console ux:icons:manage --remove --unused
# Deletes *all* local icons from the directory. (Use with extreme caution)
$ php bin/console ux:icons:manage --remove-all
Screenshots