Refactor CLI and Twilio modules; add helper tests and comments

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

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,