fix cache and imports (#6647)

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix clippy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-05-02 10:41:14 -07:00
committed by GitHub
parent 09ebb517d9
commit ace9a59a45
43 changed files with 4205 additions and 3916 deletions

View File

@ -12,7 +12,7 @@ to other modules.
```kcl
// util.kcl
export fn increment(@x) {
export fn increment(x) {
return x + 1
}
```
@ -37,11 +37,11 @@ Multiple functions can be exported in a file.
```kcl
// util.kcl
export fn increment(@x) {
export fn increment(x) {
return x + 1
}
export fn decrement(@x) {
export fn decrement(x) {
return x - 1
}
```
@ -81,7 +81,7 @@ fn cube(center) {
|> extrude(length = 10)
}
myCube = cube(center = [0, 0])
myCube = cube([0, 0])
```
*Pros*

View File

@ -249,8 +249,8 @@ fn rect(origin) {
|> close()
}
rect(origin = [0, 0])
rect(origin = [20, 0])
rect([0, 0])
rect([20, 0])
```
Those tags would only be available in the `rect` function and not globally.
@ -279,8 +279,8 @@ fn rect(origin) {
|> close()
}
rect(origin = [0, 0])
myRect = rect(origin = [20, 0])
rect([0, 0])
myRect = rect([20, 0])
myRect
|> extrude(length = 10)