Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add file.current function documents #449

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/reference/model/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@ Move a file or directory from the source path to the destination path.
`read_env(key: str) -> str`

Read the environment variable `key` from the current process.

## current

`current() -> str`

Read the path of the current script or module that is being executed.
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ weight: 100
`read_env(key: str) -> str`

从当前进程中读取环境变量 `key` 的值。

## current

`current() -> str`

读取正在执行的当前 KCL 代码文件或模块的路径。
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ weight: 100
`read_env(key: str) -> str`

从当前进程中读取环境变量 `key` 的值。

## current

`current() -> str`

读取正在执行的当前 KCL 代码文件或模块的路径。
6 changes: 6 additions & 0 deletions versioned_docs/version-0.10/reference/model/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,9 @@ Move a file or directory from the source path to the destination path.
`read_env(key: str) -> str`

Read the environment variable `key` from the current process.

## current

`current() -> str`

Read the path of the current script or module that is being executed.
Loading