CLI to install project (#164)

* CLI to install project

* CLI fixes

* Update README.md

* Cleanup gitignore
This commit is contained in:
Félix Malfait
2023-06-01 09:19:49 +02:00
committed by GitHub
parent 7d87598953
commit e8f1146ae1
22 changed files with 6639 additions and 0 deletions

17
cli/src/config.ts Normal file
View File

@ -0,0 +1,17 @@
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';