diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-11 13:38:28 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-11 13:39:03 +0900 |
commit | 176017f990b30be3d5713d7c7ba94a30be2a5e78 (patch) | |
tree | 410a6589824588e5d71e9a2016b81974cd946eaf | |
parent | f9df02735253ce530a7fa6c5fb11a4d9ded97a29 (diff) | |
download | buildstream-176017f990b30be3d5713d7c7ba94a30be2a5e78.tar.gz |
doc/source/formatintro.rst: Documenting (!) assertion directives
-rw-r--r-- | doc/source/formatintro.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/source/formatintro.rst b/doc/source/formatintro.rst index 42e7d3804..6e358573d 100644 --- a/doc/source/formatintro.rst +++ b/doc/source/formatintro.rst @@ -122,6 +122,29 @@ Compound conditionals are also allowed. enable-debug: True +(!) Assertions +~~~~~~~~~~~~~~ +Assertions allow the project author to abort processing and present +a custom error message to the user building their project. + +This is only useful when used with conditionals, allowing the project +author to assert some invalid configurations. + + +**Example:** + +.. code:: yaml + + variables: + (?): + - (logging == False and debugging == True): + + (!): | + + Impossible to print any debugging information when + logging is disabled. + + .. _format_composition: Composition |