refactor: trim daemon helper exports

This commit is contained in:
Peter Steinberger
2026-05-02 02:45:12 +01:00
parent c851a58518
commit 0871b9fcd8
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
export type ArgSplitEscapeMode = "none" | "backslash" | "backslash-quote-only";
type ArgSplitEscapeMode = "none" | "backslash" | "backslash-quote-only";
export function splitArgsPreservingQuotes(
value: string,

View File

@@ -13,7 +13,7 @@ export function quoteCmdScriptArg(value: string): string {
return `"${escaped}"`;
}
export function unescapeCmdScriptArg(value: string): string {
function unescapeCmdScriptArg(value: string): string {
return value.replace(/\^!/g, "!").replace(/%%/g, "%");
}

View File

@@ -1,4 +1,4 @@
export type CmdSetAssignment = { key: string; value: string };
type CmdSetAssignment = { key: string; value: string };
export function assertNoCmdLineBreak(value: string, field: string): void {
if (/[\r\n]/.test(value)) {

View File

@@ -1,6 +1,6 @@
import { execFile, type ExecFileOptionsWithStringEncoding } from "node:child_process";
export type ExecResult = { stdout: string; stderr: string; code: number };
type ExecResult = { stdout: string; stderr: string; code: number };
export async function execFileUtf8(
command: string,