Skip to content

Commit 7a87180

Browse files
chore: better logs
1 parent 004ac51 commit 7a87180

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/commands/init.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ const initTasks = async () => {
9393
console.log();
9494
console.log(
9595
chalk.redBright(
96-
` It seems that there is already a ${chalk.yellow(
96+
` It seems that there is already a ${chalk.yellow.bold(
9797
'teachcode-solutions',
98-
)} directory or ${chalk.yellow('config.json')} file existing in path`,
98+
)} directory or ${chalk.yellow.bold(
99+
'config.json',
100+
)} file existing in path`,
99101
),
100102
);
101103
process.exit(1);

src/commands/submit.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ const checkSolution = async (submittedFileContent, solutionFileContent) => {
106106

107107
console.log();
108108
console.log(
109-
chalk.green.bold(" Hurray you've done it!\n Move to the next task"),
109+
chalk.green.bold(
110+
` Hurray you've done it!\n Move to the next task with ${chalk.yellow.bold(
111+
'teachcode fetchtask',
112+
)}`,
113+
),
110114
);
111115
console.log();
112116
} else {

src/utils/github.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const makeLocalCommit = async taskCount => {
145145
*/
146146

147147
const pushToRemote = async () => {
148+
console.log();
148149
const spinner = ora('Pushing to GitHub').start();
149150
try {
150151
await execa.shell('git push origin master');

0 commit comments

Comments
 (0)