Merge pull request #63 from PR0M3TH3AN/refactor/remove-async-ops-8265010904332540873

🧹 Refactor cmdInit and cmdUpdate to be synchronous
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-14 09:29:17 -05:00
commit a8f5560f66
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
}
export async function cmdInit(force = false, cwd = process.cwd()) {
export function cmdInit(force = false, cwd = process.cwd()) {
const paths = getPaths(cwd);
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/.');
}
export async function cmdUpdate(force = false, cwd = process.cwd()) {
export function cmdUpdate(force = false, cwd = process.cwd()) {
const paths = getPaths(cwd);
console.log(`Updating torch configuration in ${paths.torchDir}...`);