Skip to content

Commit

Permalink
Add CLI output explaining how to add yourself to the list feross#62
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandra Sekhar committed Mar 29, 2019
1 parent 59d7552 commit 15c2740
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 15c2740

Please sign in to comment.