wp-cli / handbook

📖 Complete documentation for WP-CLI
https://make.wordpress.org/cli/handbook/
MIT License
186 stars 320 forks source link

Add files autoloader for `bin/command.php` #524

Closed BrianHenryIE closed 1 week ago

BrianHenryIE commented 2 weeks ago

There is no autoload key in Composer.

This adds the files autoloader, as I think is the convention for files that contain WP_CLI::add_command() for a package.

    "autoload": {
        "files": [
            "bin/command.php"
        ]
    },
swissspidy commented 1 week ago

It only really does something when adding tests, otherwise the wp-cli config file handles the class loading I think... But can't hurt to add.