Refactor cmdInit and cmdUpdate to be synchronous

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-14 14:12:20 +00:00
1 parent 695adb6dc9
commit eee6dfa09f
1 file changed
+2 -2
+2 -2
View File
@@ -54,7 +54,7 @@ function copyFile(src, dest, transform = false, overwrite = true) {
return true; // Copied/Overwritten return true; // Copied/Overwritten
} }
export async function cmdInit(force = false, cwd = process.cwd()) { export function cmdInit(force = false, cwd = process.cwd()) {
const paths = getPaths(cwd); const paths = getPaths(cwd);
console.log(`Initializing torch configuration in ${paths.torchDir}...`); console.log(`Initializing torch configuration in ${paths.torchDir}...`);
@@ -103,7 +103,7 @@ export async function cmdInit(force = false, cwd = process.cwd()) {
console.log('You can now customize the files in torch/ and torch/prompts/.'); console.log('You can now customize the files in torch/ and torch/prompts/.');
} }
export async function cmdUpdate(force = false, cwd = process.cwd()) { export function cmdUpdate(force = false, cwd = process.cwd()) {
const paths = getPaths(cwd); const paths = getPaths(cwd);
console.log(`Updating torch configuration in ${paths.torchDir}...`); console.log(`Updating torch configuration in ${paths.torchDir}...`);