substack.js 509 B

12345678910111213141516171819202122
  1. module.exports = substack
  2. var npm = require('./npm.js')
  3. var output = require('./utils/output.js')
  4. var isms = [
  5. '\u001b[32mbeep \u001b[35mboop\u001b[m',
  6. 'Replace your configs with services',
  7. 'SEPARATE ALL THE CONCERNS!',
  8. 'MODULE ALL THE THINGS!',
  9. '\\o/',
  10. 'but first, burritos',
  11. 'full time mad scientist here',
  12. 'c/,,\\'
  13. ]
  14. function substack (args, cb) {
  15. var i = Math.floor(Math.random() * isms.length)
  16. output(isms[i])
  17. var c = args.shift()
  18. if (c) npm.commands[c](args, cb)
  19. else cb()
  20. }