mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 12:39:24 +00:00
fix(cli): ⚡ update cli copy
This commit is contained in:
@@ -16,9 +16,9 @@ const copyFiles = async (from, to) => {
|
|||||||
* Copiar directorio con archivos
|
* Copiar directorio con archivos
|
||||||
* @param {*} templateName
|
* @param {*} templateName
|
||||||
*/
|
*/
|
||||||
const copyBaseApp = async (templateName = null) => {
|
const copyBaseApp = async (templateName = null, rootDir = process.cwd()) => {
|
||||||
const BASEP_APP_PATH_FROM = `${process.cwd()}/starters/apps/${templateName}`
|
const BASEP_APP_PATH_FROM = `${rootDir}/starters/apps/${templateName}`
|
||||||
const BASEP_APP_PATH_TO = `${process.cwd()}/${templateName}`
|
const BASEP_APP_PATH_TO = `${rootDir}/${templateName}`
|
||||||
await copyFiles(BASEP_APP_PATH_FROM, BASEP_APP_PATH_TO)
|
await copyFiles(BASEP_APP_PATH_FROM, BASEP_APP_PATH_TO)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,11 +64,6 @@ const startInteractive = async () => {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
* Question
|
|
||||||
* @returns
|
|
||||||
*/
|
|
||||||
// const cleanAllSession = async () => {
|
// const cleanAllSession = async () => {
|
||||||
// const answer = cleanTmp.toLowerCase() || 'n'
|
// const answer = cleanTmp.toLowerCase() || 'n'
|
||||||
// if (answer.includes('n')) return true
|
// if (answer.includes('n')) return true
|
||||||
|
|||||||
Reference in New Issue
Block a user