wp-cli / scaffold-package-command

Scaffolds WP-CLI commands with functional tests, full README.md, and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command not available after install with --dir option

ligne13 opened this issue · comments

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 ?

My mistake. I messed with the paths...