mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Refactor cmdInit and cmdUpdate to be synchronous
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
695adb6dc9
commit
eee6dfa09f
1 file changed
+2
-2
+2
-2
@@ -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}...`);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user