Skip to content

Commit

Permalink
fix: avoid process continuous monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeep committed May 9, 2024
1 parent 16a0772 commit c48005d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ pipeline(
h: 'help',
})
.parse() as ArgumentVector,
).catch((error: Exception) => {
console.log(`${error}`);
process.exit(1);
});
)
.then(() => {
process.exit(0);
})
.catch((error: Exception) => {
console.log(`${error}`);
process.exit(1);
});
8 changes: 4 additions & 4 deletions src/utils/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ import Exception from '@kabeep/exception';

export class Info extends Exception {
toString() {
return this.info('black.bgBlueBright');
return this.info('black.bgBlue');
}
}

export class Success extends Exception {
toString() {
return this.info('black.bgGreenBright');
return this.info('black.bgGreen');
}
}

export class Warning extends Exception {
toString() {
return this.info('black.bgYellowBright');
return this.info('black.bgYellow');
}
}

export class Failure extends Exception {
toString() {
return this.info('black.bgRedBright');
return this.info('black.bgRed');
}
}

0 comments on commit c48005d

Please sign in to comment.