mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +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
|
||||
* @param {*} templateName
|
||||
*/
|
||||
const copyBaseApp = async (templateName = null) => {
|
||||
const BASEP_APP_PATH_FROM = `${process.cwd()}/starters/apps/${templateName}`
|
||||
const BASEP_APP_PATH_TO = `${process.cwd()}/${templateName}`
|
||||
const copyBaseApp = async (templateName = null, rootDir = process.cwd()) => {
|
||||
const BASEP_APP_PATH_FROM = `${rootDir}/starters/apps/${templateName}`
|
||||
const BASEP_APP_PATH_TO = `${rootDir}/${templateName}`
|
||||
await copyFiles(BASEP_APP_PATH_FROM, BASEP_APP_PATH_TO)
|
||||
}
|
||||
|
||||
|
||||
@@ -64,11 +64,6 @@ const startInteractive = async () => {
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* Question
|
||||
* @returns
|
||||
*/
|
||||
// const cleanAllSession = async () => {
|
||||
// const answer = cleanTmp.toLowerCase() || 'n'
|
||||
// if (answer.includes('n')) return true
|
||||
|
||||
Reference in New Issue
Block a user