Add verbosity level and quiet flag in ssh command based on debug flag by thelovekesh · Pull Request #5869 · wp-cli/wp-cli · GitHub
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
4 changes: 2 additions & 2 deletions features/aliases.feature
4 changes: 2 additions & 2 deletions features/flags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,14 @@ Feature: Global flags
When I try `WP_CLI_STRICT_ARGS_MODE=1 wp --debug --ssh=/ --version`
Then STDERR should contain:
"""
Running SSH command: ssh -q -T '' 'WP_CLI_STRICT_ARGS_MODE=1 wp
Running SSH command: ssh -T -vvv '' 'WP_CLI_STRICT_ARGS_MODE=1 wp
"""

Scenario: SSH flag should support changing directories
When I try `wp --debug --ssh=wordpress:/my/path --version`
Then STDERR should contain:
"""
Running SSH command: ssh -q -T 'wordpress' 'cd '\''/my/path'\''; wp
Running SSH command: ssh -T -vvv 'wordpress' 'cd '\''/my/path'\''; wp
"""

Scenario: SSH flag should support Docker
Expand Down
7 changes: 4 additions & 3 deletions php/WP_CLI/Runner.php