refactor: trim daemon helper exports · openclaw/openclaw@0871b9f
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export type ArgSplitEscapeMode = "none" | "backslash" | "backslash-quote-only"; |
| 1 | +type ArgSplitEscapeMode = "none" | "backslash" | "backslash-quote-only"; |
2 | 2 | |
3 | 3 | export function splitArgsPreservingQuotes( |
4 | 4 | value: string, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ export function quoteCmdScriptArg(value: string): string {
|
13 | 13 | return `"${escaped}"`; |
14 | 14 | } |
15 | 15 | |
16 | | -export function unescapeCmdScriptArg(value: string): string { |
| 16 | +function unescapeCmdScriptArg(value: string): string { |
17 | 17 | return value.replace(/\^!/g, "!").replace(/%%/g, "%"); |
18 | 18 | } |
19 | 19 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export type CmdSetAssignment = { key: string; value: string }; |
| 1 | +type CmdSetAssignment = { key: string; value: string }; |
2 | 2 | |
3 | 3 | export function assertNoCmdLineBreak(value: string, field: string): void { |
4 | 4 | if (/[\r\n]/.test(value)) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { execFile, type ExecFileOptionsWithStringEncoding } from "node:child_process"; |
2 | 2 | |
3 | | -export type ExecResult = { stdout: string; stderr: string; code: number }; |
| 3 | +type ExecResult = { stdout: string; stderr: string; code: number }; |
4 | 4 | |
5 | 5 | export async function execFileUtf8( |
6 | 6 | command: string, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。