Files
twenty/cli/src/config.ts
Félix Malfait e8f1146ae1 CLI to install project (#164)
* CLI to install project

* CLI fixes

* Update README.md

* Cleanup gitignore
2023-06-01 09:19:49 +02:00

18 lines
485 B
TypeScript

import { exec } from 'child_process';
export function execShell(cmd: string): Promise<string> {
return new Promise((resolve, reject) => {
exec(cmd, (error, stdout, stderr) => {
if (error) {
console.warn(`Error: ${error.message}`);
console.warn(`stderr: ${stderr}`);
reject(error);
}
resolve(stdout ? stdout : stderr);
});
});
}
export const REPO_URL = 'https://github.com/twentyhq/twenty.git';
export const CLONE_DIR = 'twenty';