Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
feat: adds complete messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Feb 10, 2020
1 parent ec411ef commit 9f7609e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cli/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const backup = async (config: ICliFileConfig) => {
if (canExport(report, config)) {
const response = await exportService.exportAllAsync();
await zipService.createZipAsync(response);

console.log('Completed');
} else {
console.log(`Project contains following inconsistencies:`);
for (const issue of report.type_issues) {
Expand Down Expand Up @@ -69,6 +71,8 @@ const clean = async (config: ICliFileConfig) => {
});

await cleanService.cleanAllAsync();

console.log('Completed');
};

const restore = async (config: ICliFileConfig) => {
Expand Down Expand Up @@ -99,6 +103,8 @@ const restore = async (config: ICliFileConfig) => {

if (canImport(data, config)) {
await importService.importFromSourceAsync(data);

console.log('Completed');
} else {
console.log(`Project contains following inconsistencies:`);
for (const issue of data.validation.type_issues) {
Expand Down
1 change: 1 addition & 0 deletions src/zip/zip.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class ZipService {

console.log(`Writing file '${filePath}'`);
await fs.promises.writeFile(filePath, content);
console.log(`File saved`);
}

private async extractBinaryFilesAsync(
Expand Down

0 comments on commit 9f7609e

Please sign in to comment.