Skip to content

Commit

Permalink
Merge pull request #132 from ShekarMania/added-cli-output-instructions
Browse files Browse the repository at this point in the history
Add CLI output explaining how to add yourself to the list #62
  • Loading branch information
feross authored Apr 1, 2019
2 parents 658daa5 + 64cc855 commit 606e85e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ async function runThanks (cwd, promptToOpen) {
printTable(authorsSeeking, pkgNamesSeeking, orgsSeeking, authorsPkgNames, orgsPkgNames, directPkgNames)
}

printInstructions()

if (donateLinks.length && promptToOpen) {
const prompt = new PromptConfirm(
chalk`Want to open these {cyan donate pages} in your {magenta web browser}? 🦄`
Expand Down Expand Up @@ -483,3 +485,9 @@ async function readDirectPkgNames () {
: []
}
}

function printInstructions () {
const url = 'https://github.com/feross/thanks/blob/master/index.js'
const message = chalk`If you're an open source author who accepts donations, add yourself to the {bold.magenta thanks} CLI by modifying this file( {cyan ${url} }), and sending a pull request!`
console.log('\n' + message + '\n')
}

0 comments on commit 606e85e

Please sign in to comment.