doc: add many rules to readme

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-01 00:03:07 +03:00
parent 53b99905f8
commit d46da89a47
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -7,6 +7,10 @@ You can create many states in your `.env` and switch between them.
Rules:
- State name starts on a new line with `###` symbols (Ex. `### local`)
- State name can contain multiple comma-separated sections (Ex.
`### local,staging`)
- Each section may specify a namespace (Ex. `### debug:on,dev:on`). If a section
doesn't contain a namespace, it's a global namespace.
- State ends if line is empty or contains a new state name.
You can see the [full example].