Skip to content

Commit

Permalink
add link to docs on rules init
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Jun 13, 2023
1 parent acfcbd2 commit d114e76
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions cli/cmds/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,25 @@ export async function initCmd() {

if (!accessToken) {
// Print out an instruction to login
console.log(`You're ready to go! Try running:
console.log(`You're ready to go!
Try running:
rules login
rules check`);
rules check
Learn how to write great rules at
https://lintrule.com/docs/in-production/best-practices
`);
return;
}

// Print out an instruction to login and then run rules check
console.log(`You're ready to go! Try running:
rules check`);
console.log(`You're ready to go!
Try running:
rules check
Learn how to write great rules at
https://lintrule.com/docs/in-production/best-practices
`);
}

0 comments on commit d114e76

Please sign in to comment.