0265afa054
Import the runnable game code, content, docs, scripts, and repo guidance while leaving local agent state, dependency installs, build output, and backup copies out of the published tree.
8 lines
313 B
JavaScript
8 lines
313 B
JavaScript
import { runCommand } from './command.js';
|
|
|
|
export async function runVirsh(args = [], options = {}) {
|
|
const uri = options.uri ?? process.env.LIBVIRT_URI ?? 'qemu:///system';
|
|
const timeoutMs = (options.timeoutSec ?? 10) * 1000;
|
|
return await runCommand('virsh', ['--connect', uri, ...args], { timeoutMs });
|
|
}
|