Skip to content

Commit 633d433

Browse files
swissspidyclaude
andcommitted
Close the code fence in the project configuration trust docs
Also describe which directives are gated in line with the framework change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWTd5pwpi2xQfDA6mUYkkx
1 parent 7b7d785 commit 633d433

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,13 @@ WP_CLI_BIN_DIR=~/wp-cli composer behat
439439

440440
#### Project configuration trust
441441

442-
WP-CLI asks for confirmation before acting on `require`, `exec`, `env` or `ssh-args` directives found in a project-level `wp-cli.yml` file. Test fixtures create such files all the time and a test run cannot answer an interactive prompt, so the Behat context passes `WP_CLI_TRUST_PROJECT_CONFIG=1` to every command it runs.
442+
WP-CLI asks for confirmation before acting on directives that can run code or redirect a command, such as `require`, `exec`, `env`, `ssh-args` or SSH aliases, when they come from a project-level `wp-cli.yml` file. Test fixtures create such files all the time and a test run cannot answer an interactive prompt, so the Behat context passes `WP_CLI_TRUST_PROJECT_CONFIG=1` to every command it runs.
443443

444444
Set the `WP_CLI_TRUST_PROJECT_CONFIG` environment variable yourself to override that default for the whole run. Individual scenarios can override it per command:
445445

446446
```gherkin
447447
When I try `WP_CLI_TRUST_PROJECT_CONFIG=false wp cli version`
448+
```
448449

449450
### Setting up the tests in Travis CI
450451

0 commit comments

Comments
 (0)