Skip to content

Commit

Permalink
Explicitly exit the command
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Jun 14, 2024
1 parent 421312e commit 060af22
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/add-platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ games.platforms.sort(nameCompare());
await writeGamesJson(games);
console.log(logSymbols.success, `${name} added.`);
console.log(platform);
Deno.exit(0);
1 change: 1 addition & 0 deletions source/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ console.log(
`${green(bold(name))} added to ${cyan(bold(foundPlatform.name))}.`,
);
console.table(game);
Deno.exit(0);
1 change: 1 addition & 0 deletions source/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ const markdownContent = titleSection + badgesSection + descriptionSection +

await writeReadme(markdownContent);
console.log(logSymbols.success, "Compiled successfully.");
Deno.exit(0);
1 change: 1 addition & 0 deletions source/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ if (withFix) {
}

console.log(logSymbols.success, "Validation passed.");
Deno.exit(0);
1 change: 1 addition & 0 deletions source/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ games.related = [];

await writeGamesJson(games);
console.log(logSymbols.success, "Reset to default done.");
Deno.exit(0);
1 change: 1 addition & 0 deletions source/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ for (const p of games.platforms) {
}

console.table(matchedGames);
Deno.exit(0);
1 change: 1 addition & 0 deletions source/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ const summary = [
];

console.table(summary);
Deno.exit(0);

0 comments on commit 060af22

Please sign in to comment.