Files
keycloak_theme/scripts/shared/run.ts
2024-09-22 20:12:11 +02:00

9 lines
261 B
TypeScript

import * as child_process from "child_process";
import chalk from "chalk";
export function run(command: string, options?: { cwd: string }) {
console.log(chalk.grey(`$ ${command}`));
child_process.execSync(command, { stdio: "inherit", ...options });
}