Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions features/command.feature
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Feature: WP-CLI Commands
WP_CLI::add_command( 'command', 'Custom_Command_Class' );
"""

When I try `wp --require=custom-cmd.php command invalid < session_no`
When I try `WP_CLI_AUTOCORRECT=confirm wp --require=custom-cmd.php command invalid < session_no`
Then STDERR should contain:
"""
Warning: 'invalid' is not a registered subcommand of 'command'. See 'wp help command' for available subcommands.
Expand Down Expand Up @@ -1185,19 +1185,19 @@ Feature: WP-CLI Commands
n
"""

When I try `wp clu < session_no`
When I try `WP_CLI_AUTOCORRECT=confirm wp clu < session_no`
Then STDOUT should contain:
"""
Did you mean 'cli'?
"""

When I try `wp cli nfo < session_no`
When I try `WP_CLI_AUTOCORRECT=confirm wp cli nfo < session_no`
Then STDOUT should contain:
"""
Did you mean 'info'?
"""

When I try `wp cli beyondlevenshteinthreshold`
When I try `WP_CLI_AUTOCORRECT=confirm wp cli beyondlevenshteinthreshold`
Then STDOUT should not contain:
"""
Did you mean
Expand Down