doc: scopes, update and publish version

This commit is contained in:
Artemy 2022-08-08 19:03:16 +03:00
parent d11d174cfa
commit 31557d6805
4 changed files with 21 additions and 2 deletions

2
Cargo.lock generated
View file

@ -197,7 +197,7 @@ checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1"
[[package]]
name = "onlang"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"clap",
"colored",

View file

@ -1,6 +1,6 @@
[package]
name = "onlang"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
authors = ["artegoser"]
license = "MIT"

View file

@ -152,3 +152,11 @@ works only with numbers (and variables with number type)
{ delete: "name" }, //deletes variable from memory
]
```
## Create scope
```json5
[
{scope:[..commands]}
]
```

View file

@ -245,6 +245,17 @@
],
},
"\n\nCheck scopes of visibility",
{
scope: [
{ let: { scoped: "Value" } },
["scoped = ", { var: "scoped" }],
['isExist("scoped"): ', { isExist: "scoped" }],
],
},
"After scope",
['isExist("scoped"): ', { isExist: "scoped" }],
"\nInput a var",
{
let: {