ux icon indicating copy to clipboard operation
ux copied to clipboard

[Icons] New console command to manage local icons.

Open xDeSwa opened this issue 2 months ago • 5 comments

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

All Icons List example allicons_list
Unused List example unused_list
Unused List Table view example unused_table
Unused List Group view example unused_list_group

xDeSwa avatar Nov 12 '25 19:11 xDeSwa