Refactor CLI and Twilio modules; add helper tests and comments

This commit is contained in:
Peter Steinberger committed 2025-11-25 03:11:39 +01:00
1 parent c71abf13a1
commit afdaa7ef98
17 files changed
+996 -734

No files matched your search

+1 -1
View File
@@ -2,12 +2,12 @@ import { execFile, spawn } from "node:child_process";
import { danger, isVerbose } from "../globals.js";
// Simple promise-wrapped execFile with optional verbosity logging.
export async function runExec(
command: string,
args: string[],
timeoutMs = 10_000,
): Promise<{ stdout: string; stderr: string }> {
// Simple promise-wrapped execFile with optional verbosity logging.
try {
const { stdout, stderr } = await execFile(command, args, {
timeout: timeoutMs,