Skip to content

State line prefix

You can add a prefix before the state line only.

Default: null.

<?php

use Steevanb\ParallelProcess\Process\Process;

(new Process(['command']))->setOutputStatePrefix('foo');

See example.

Try it!

parallel-processes-example.sh usage/process-configuration/output-state-prefix.php

Summary lines prefix

You can add a prefix before process output lines.

Default: null.

<?php

use Steevanb\ParallelProcess\Process\Process;

(new Process(['command']))->setOutputSummaryPrefix('foo');

See example.

Indentation

Indentation will be added after the configured summary prefix, to show output lines are for this process.

Try it!

parallel-processes-example.sh usage/process-configuration/output-summaryprefix.php

All lines

You can add an output prefix before any line.

It's a shortcut for calling Process::setOutputStatePrefix() then Process::setOutputSummaryPrefix() with the same prefix.

Default: null.

<?php

use Steevanb\ParallelProcess\Process\Process;

(new Process(['command']))->setOutputPrefix('foo');

See example.

Try it!

parallel-processes-example.sh usage/process-configuration/output-prefix.php