Skip to content

Allow for well-formed JSON arrays in option values#22

Draft
jblz wants to merge 2 commits intotrunkfrom
fix/json-array-args
Draft

Allow for well-formed JSON arrays in option values#22
jblz wants to merge 2 commits intotrunkfrom
fix/json-array-args

Conversation

@jblz
Copy link
Copy Markdown
Member

@jblz jblz commented Aug 10, 2022

No description provided.

Comment thread remote/remote_test.go
want []string
}{
"vip whatever should not be changed": {errString: "", want: []string{"vip", "whatever"}, input: "vip whatever"},
"wp option update with array should not be changed": {errString: "", want: []string{"wp", "option", "update", "someoption", `["stuff","things"]`, "--format=json"}, input: "wp option update someoption [\"stuff\",\"things\"] --format=json"},
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows the invalid JSON error to bubble back to the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant