Skip to content

Commit

Permalink
Update the wp-cli step code example (#1140)
Browse files Browse the repository at this point in the history
@dmsnell reported:

> uh oh. I get a crash of the Playground: syntax error in Blueprints
when copy/pasting from the docs
```
{
            "step": "wpCLI",
            "command": "wp post create --post_title='Test post' --post_excerpt='Some content'"
}
```
> the crash is Unhandled Promise Rejection: Error: Invalid blueprint:
value of tag "step" must be in oneOf at /steps/1
>
> the docs show wpCLI but the JSON schema defines wp-cli

This PR adjusts the documentation example.
  • Loading branch information
adamziel authored Mar 25, 2024
1 parent b8382ce commit 91d685f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/blueprints/src/lib/steps/wp-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { phpVar } from '@php-wasm/util';
*
* <code>
* {
* "step": "wpCLI",
* "step": "wp-cli",
* "command": "wp post create --post_title='Test post' --post_excerpt='Some content'"
* }
* </code>
Expand Down

0 comments on commit 91d685f

Please sign in to comment.