Skip to content

Commit 08573b4

Browse files
committed
test: add JUnit tests (>=90% coverage); docs: comprehensive English JavaDoc
1 parent 0edc1c7 commit 08573b4

137 files changed

Lines changed: 2846 additions & 2445 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/io/github/easy4j/openclaw/OpenClawCliConfig.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import lombok.Data;
44

55
/**
6-
* OpenClaw 本地 CLI 客户端配置。
6+
* OpenClaw local CLI client configuration.
77
* <p>
8-
* 涵盖本地 {@code openclaw} 可执行文件路径、超时、并发、工作目录等所有 CLI 运行时设置。
8+
* Covers {@code openclaw} executable,timeout,concurrency,working directory CLI .
99
* </p>
1010
*
1111
* @author [@Loong Wan](https://github.com/loong10k)
@@ -15,44 +15,44 @@
1515
public class OpenClawCliConfig {
1616

1717
/**
18-
* 是否启用本地 CLI 子系统。
19-
* <p> false 时跳过 CLI 相关初始化和检查。</p>
18+
* Whether to enable CLI system.
19+
* <p>When false,skips CLI .</p>
2020
*/
2121
private boolean enabled = true;
2222

2323
/**
24-
* 启动时是否探测 {@code openclaw --version}
24+
* At startupWhether to probe {@code openclaw --version}.
2525
*/
2626
private boolean startupCheckEnabled = false;
2727

2828
/**
29-
* CLI 不可用时是否快速失败(中断构造)。
30-
* <p>默认 false 仅打 WARN;生产环境建议设为 true</p>
29+
* CLI Whether to fail fast(interrupts construction).
30+
* <p>Defaults to false only logs a warning;productionwhen true.</p>
3131
*/
3232
private boolean failFastOnUnavailable = false;
3333

3434
/**
35-
* 本地可执行文件名或绝对路径
35+
* executable name
3636
*/
3737
private String executable = "openclaw";
3838

3939
/**
40-
* 本地 agent 命令超时(秒)
40+
* agent timeout(seconds)
4141
*/
4242
private int timeout = 300;
4343

4444
/**
45-
* 本地 CLI 子进程工作目录;为空时使用 JVM 当前目录。
45+
* CLI subprocessworking directory;When empty, JVM directory.
4646
*/
4747
private String workingDirectory;
4848

4949
/**
50-
* 本机 CLI 子进程最大并发数;小于等于 0 时使用 CPU 核心数与 2 的较大值。
50+
* CLI subprocessmaximum concurrency; 0 CPU 2 value.
5151
*/
5252
private int maxConcurrentExecutions = 0;
5353

5454
/**
55-
* 探测本地运行时是否可用的超时(秒)
55+
* timeout(seconds)
5656
*/
5757
private int probeTimeoutSeconds = 5;
5858

0 commit comments

Comments
 (0)