null
====
- **Alias**: ``null``
- **Task**: ``Maestro\Library\Task\Task\NullTask``
- **Handler**: ``Maestro\Library\Task\Task\NullHandler``
- **Arguments**:
- *This task has no arguments*
This task does nothing. It can be used to create aggregate targets.
In the following example the ``null`` tasks 4, 5 and 6 depend on all of tasks
1, 2, and 3 to be successful. Rather than each explicitly declaring all the
dependencies, they can target the ``null`` task.
Example:
.. literalinclude:: ../../../../example/null.json
:language: json
Which looks something like this:
.. graphviz::
digraph maestro {
rankdir=TB
"root" [color=black label=<root (done)
was initializing
Artifact: Maestro\\Library\\Support\\Environment\\Environment
Artifact: Maestro\\Library\\Support\\Variables\\Variables
Artifact: Maestro\\Library\\Support\\ManifestPath
>]
"example/package" [color=black label=<example/package (done)
was initializing package example/package
Artifact: Maestro\\Library\\Support\\Environment\\Environment
Artifact: Maestro\\Library\\Support\\Package\\Package
Artifact: Maestro\\Library\\Workspace\\Workspace
>]
"example/package/phpunit" [color=black label=<phpunit (done)
was doing nothing
>]
"example/package/phpstan" [color=black label=<phpstan (done)
was doing nothing
>]
"example/package/php-cs-fixer" [color=black label=<php-cs-fixer (done)
was doing nothing
>]
"example/package/qa" [color=black label=<qa (done)
was doing nothing
>]
"example/package/tag_versions" [color=black label=<tag_versions (done)
was doing nothing
>]
"example/package/build_documentation" [color=black label=<build_documentation (done)
was doing nothing
>]
"root"->"example/package"
"example/package"->"example/package/phpunit"
"example/package"->"example/package/phpstan"
"example/package"->"example/package/php-cs-fixer"
"example/package/phpunit"->"example/package/qa"
"example/package/phpstan"->"example/package/qa"
"example/package/php-cs-fixer"->"example/package/qa"
"example/package/qa"->"example/package/tag_versions"
"example/package/qa"->"example/package/build_documentation"
}