From c209e189e082fe4b59e00ee9d7b13a19d0ae6458 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Sun, 22 Nov 2026 17:44:20 +0800 Subject: [PATCH] docs(plugins): format the run-targets process tables (#5193) Re-aligns the Running programs tables in docs/{en,zh}/plugins/guides/run-targets.mdx so pnpm format:check passes on main again. Whitespace only. --- docs/en/plugins/guides/run-targets.mdx | 16 ++++++++-------- docs/zh/plugins/guides/run-targets.mdx | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/en/plugins/guides/run-targets.mdx b/docs/en/plugins/guides/run-targets.mdx index 8a07b6c9f..15ef99690 100644 --- a/docs/en/plugins/guides/run-targets.mdx +++ b/docs/en/plugins/guides/run-targets.mdx @@ -297,14 +297,14 @@ launching as before. ## Running programs -| Function | What it does | -| ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- | -| `Project::run_process(program, &args, stdin)` | Runs the pinned program in the project root and waits: `{ status, stdout, stderr }`, 4 MiB each. | -| `host::run_command(&Command, Some(&project), stdin)` | API 1.3: the same, with environment variables added by `Command::env`. | -| `host::run_captured(&Command, Some(&project), stdin, options)` | API 1.15: configurable output limit (up to 128 MiB per stream); errors explicitly if either stdout or stderr overflows. | -| `host::start(&Command, Some(&project))` | API 1.3: a `Child` left running: `poll`, `write`, `close_stdin`, `wait`, `kill`. At most 8. | -| `host::start_stream(&Command, Some(&project), options)` | API 1.15: lossless streaming with backpressure and bounded buffer, terminating with an explicit error on total overflow.| -| `host::open_terminal(title, program, &args)` | A Terminal tab running the program (see [Views](/en/plugins/guides/views)). | +| Function | What it does | +| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | +| `Project::run_process(program, &args, stdin)` | Runs the pinned program in the project root and waits: `{ status, stdout, stderr }`, 4 MiB each. | +| `host::run_command(&Command, Some(&project), stdin)` | API 1.3: the same, with environment variables added by `Command::env`. | +| `host::run_captured(&Command, Some(&project), stdin, options)` | API 1.15: configurable output limit (up to 128 MiB per stream); errors explicitly if either stdout or stderr overflows. | +| `host::start(&Command, Some(&project))` | API 1.3: a `Child` left running: `poll`, `write`, `close_stdin`, `wait`, `kill`. At most 8. | +| `host::start_stream(&Command, Some(&project), options)` | API 1.15: lossless streaming with backpressure and bounded buffer, terminating with an explicit error on total overflow. | +| `host::open_terminal(title, program, &args)` | A Terminal tab running the program (see [Views](/en/plugins/guides/views)). | ```rust use openidea_plugin::host::{self, Command}; diff --git a/docs/zh/plugins/guides/run-targets.mdx b/docs/zh/plugins/guides/run-targets.mdx index 0053e53e9..d58f2db9b 100644 --- a/docs/zh/plugins/guides/run-targets.mdx +++ b/docs/zh/plugins/guides/run-targets.mdx @@ -254,14 +254,14 @@ register_plugin!(MyPlugin, run_target_validation); ## 运行程序 -| 函数 | 作用 | -| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | -| `Project::run_process(program, &args, stdin)` | 在项目根目录运行已固定的程序并等待结束:`{ status, stdout, stderr }`,各 4 MiB。 | -| `host::run_command(&Command, Some(&project), stdin)` | API 1.3:同上,可用 `Command::env` 追加环境变量。 | -| `host::run_captured(&Command, Some(&project), stdin, options)` | API 1.15:可配置输出上限(每个流最高 128 MiB),stdout 或 stderr 溢出时明确报错。 | -| `host::start(&Command, Some(&project))` | API 1.3:保持运行的 `Child`:`poll`、`write`、`close_stdin`、`wait`、`kill`。最多 8 个。 | -| `host::start_stream(&Command, Some(&project), options)` | API 1.15:基于管道背压的有界无损流式传输,超出总预算时明确报错并终止进程。 | -| `host::open_terminal(title, program, &args)` | 运行该程序的终端标签页(见 [视图](/zh/plugins/guides/views))。 | +| 函数 | 作用 | +| -------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `Project::run_process(program, &args, stdin)` | 在项目根目录运行已固定的程序并等待结束:`{ status, stdout, stderr }`,各 4 MiB。 | +| `host::run_command(&Command, Some(&project), stdin)` | API 1.3:同上,可用 `Command::env` 追加环境变量。 | +| `host::run_captured(&Command, Some(&project), stdin, options)` | API 1.15:可配置输出上限(每个流最高 128 MiB),stdout 或 stderr 溢出时明确报错。 | +| `host::start(&Command, Some(&project))` | API 1.3:保持运行的 `Child`:`poll`、`write`、`close_stdin`、`wait`、`kill`。最多 8 个。 | +| `host::start_stream(&Command, Some(&project), options)` | API 1.15:基于管道背压的有界无损流式传输,超出总预算时明确报错并终止进程。 | +| `host::open_terminal(title, program, &args)` | 运行该程序的终端标签页(见 [视图](/zh/plugins/guides/views))。 | ```rust use openidea_plugin::host::{self, Command};