🎥 Make videos programmatically with React
working on install.mjs
Matt McGillivray0e681fa93750
diff --git a/packages/cloudrun/install.mjs b/packages/cloudrun/install.mjsindex be078681f8..ab278efceb 100644--- a/packages/cloudrun/install.mjs+++ b/packages/cloudrun/install.mjs@@ -18,7 +18,31 @@ import { execSync } from "child_process";// })execSync(- 'echo "\u001bsetting project_id in Terraform, based on current project."',+ 'echo "\u001b[32;1mThis will setup the GCP project for Remotion Cloud Run.\n\u001b[0m"',+ {stdio: 'inherit'}+);++// Read input from the user+process.stdin.setEncoding('utf8');+console.log('What version of Remotion do you want to use? (format: 1.0.0)');+process.stdin.on('data', (input) => {+ // Remove newlines and carriage returns from the input+ input = input.trim();++ // Run a bash command with the input as an argument+ exec(`echo "You entered: ${input}"`, (error, stdout, stderr) => {+ if (error) {+ console.error(`Error: ${error}`);+ return;+ }++ console.log(`Output: ${stdout}`);+ console.error(`Errors: ${stderr}`);+ });+});++execSync(+ 'echo "setting project_id in Terraform, based on current project."',{stdio: 'inherit'});