node/deps/npm/lib/substack.js

21 lines
473 B
JavaScript
Raw Normal View History

2011-12-14 10:53:02 +08:00
module.exports = substack
var npm = require("./npm.js")
2012-06-11 12:29:47 +08:00
var isms =
[ "\033[32mbeep \033[35mboop\033[m"
, "Replace your configs with services"
, "SEPARATE ALL THE CONCERNS!"
, "MODULE ALL THE THINGS!"
, "\\o/"
, "but first, burritos"
, "full time mad scientist here"
, "c/,,\\" ]
2011-12-14 10:53:02 +08:00
function substack (args, cb) {
2012-06-11 12:29:47 +08:00
var i = Math.floor(Math.random() * isms.length)
console.log(isms[i])
2011-12-14 10:53:02 +08:00
var c = args.shift()
if (c) npm.commands[c](args, cb)
else cb()
}