Skip to content

Commit 1b560d8

Browse files
committed
docs: add file.current function documents
Signed-off-by: peefy <[email protected]>
1 parent 07a93fd commit 1b560d8

File tree

4 files changed

+24
-0
lines changed
  • docs/reference/model
  • i18n/zh-CN/docusaurus-plugin-content-docs
  • versioned_docs/version-0.10/reference/model

4 files changed

+24
-0
lines changed

docs/reference/model/file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,9 @@ Move a file or directory from the source path to the destination path.
7171
`read_env(key: str) -> str`
7272

7373
Read the environment variable `key` from the current process.
74+
75+
## current
76+
77+
`current() -> str`
78+
79+
Read the path of the current script or module that is being executed.

i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/model/file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ weight: 100
8383
`read_env(key: str) -> str`
8484

8585
从当前进程中读取环境变量 `key` 的值。
86+
87+
## current
88+
89+
`current() -> str`
90+
91+
读取正在执行的当前 KCL 代码文件或模块的路径。

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.10/reference/model/file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ weight: 100
8383
`read_env(key: str) -> str`
8484

8585
从当前进程中读取环境变量 `key` 的值。
86+
87+
## current
88+
89+
`current() -> str`
90+
91+
读取正在执行的当前 KCL 代码文件或模块的路径。

versioned_docs/version-0.10/reference/model/file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,9 @@ Move a file or directory from the source path to the destination path.
7171
`read_env(key: str) -> str`
7272

7373
Read the environment variable `key` from the current process.
74+
75+
## current
76+
77+
`current() -> str`
78+
79+
Read the path of the current script or module that is being executed.

0 commit comments

Comments
 (0)