Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
fa8a6afd
Commit
fa8a6afd
authored
Aug 03, 2017
by
Erick Hitter
Browse files
Note why we pass `--quiet`, as it's uncommon
parent
30a6dbd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
runner/runner.go
View file @
fa8a6afd
...
...
@@ -308,6 +308,7 @@ func runEvents(workerID int, events <-chan event) {
}
func
runWpCliCmd
(
subcommand
[]
string
)
(
string
,
error
)
{
// `--quiet`` included to prevent WP-CLI commands from generating invalid JSON
subcommand
=
append
(
subcommand
,
"--allow-root"
,
"--quiet"
,
fmt
.
Sprintf
(
"--path=%s"
,
wpPath
))
if
wpNetwork
>
0
{
subcommand
=
append
(
subcommand
,
fmt
.
Sprintf
(
"--network=%d"
,
wpNetwork
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment