Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Running misspelled alias commands #6054

@swissspidy

Description

@swissspidy

Discussed in https://github.com/orgs/wp-cli/discussions/5813

Originally posted by dingo-d July 14, 2023
This is an idea coming from this issue: wp-cli/extension-command#248

So, in essence, when we mistype a command, we would get a recommendation like:

Did you mean 'delete'?

It would be good to have an option (Symfony commands have this options) to actually run the suggested option, instead of just exiting out just to type the command again.

$ wp plugin remove plugin-name
Did you mean 'delete'? [Y]

when you type Y, yes or y, you'd run the wp plugin delete plugin-name command.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions