Skip to content

Commit

Permalink
Replace console.log with info
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiandupont committed Jul 11, 2023
1 parent fafaad4 commit 54b2cd8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable unicorn/prefer-module */
/* eslint-disable unicorn/no-process-exit */
/* eslint-disable no-console */
import chalk from 'chalk';
// @ts-ignore
import optionator from 'optionator';
Expand Down Expand Up @@ -47,16 +46,16 @@ async function main() {
}

if (options.help) {
console.log(o.generateHelp());
console.info(o.generateHelp());
process.exit(0);
}

if (options.version) {
console.log(version);
console.info(version);
process.exit(0);
}

console.log(`${chalk.greenBright('schema-lint')}`);
console.info(`${chalk.greenBright('schema-lint')}`);
const configFile = path.join(
process.cwd(),
options.config || '.schemalintrc.js'
Expand Down

0 comments on commit 54b2cd8

Please sign in to comment.