wp-cli / scaffold-package-command

Scaffolds WP-CLI commands with functional tests, full README.md, and more.
MIT License
69 stars 20 forks source link

Command not available after install with --dir option #183

Closed ligne13 closed 5 years ago

ligne13 commented 5 years ago

Hi, after scaffolding a new package with the --dir option , the command is not found :

Error: 'my-command' is not a registered wp command. See 'wp help' for available commands.

Here's my scaffold command :

wp scaffold package ligne13/mypackage --dir=mycustomdir/ligne13/mypackage --skip-tests --skip-readme --skip-github

Files are created in the directory. A reference to the package is added in the ~/.wp-cli/packages/composer.json file :

"repositories": {
...
"ligne13/mypackage": {
            "type": "path",
            "url": "mycustomdir/ligne13/mypackage"
        },
...
}

Did I miss something ?

ligne13 commented 5 years ago

My mistake. I messed with the paths...