feat: added --preserve in the docs

This commit is contained in:
Byson94
2025-09-18 20:42:03 +05:30
parent ad7229039f
commit bd7f1f58bf

View File

@@ -17,3 +17,13 @@ ewwii update --inject "VAR1=bar,VAR2=foo2"
# or in short
ewwii update -i "VAR1=baz,VAR2=zoo"
```
## Preserving updates with `--preserve`
When you inject variables, the state is only updated temporarily. That means that if some other poll/listen variable triggered a update, your update will get overridden. So, this is why the `--preserve` flag exists. This flag allows you to preserve the variables in memory until it's overridden.
```bash
ewwii update -i "foo=hello" --preserve
# or in short
ewwii update -i "foo=hello" -p
```