mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Merge pull request #63 from PR0M3TH3AN/refactor/remove-async-ops-8265010904332540873
🧹 Refactor cmdInit and cmdUpdate to be synchronous
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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}...`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user