UNPKG

mib-cli

Version:

CLI tool to manage projects

22 lines (17 loc) 392 B
const userHome = require('user-home'); const config = require('./config'); module.exports = (function() { let self = this; let vorpal, chalk; return { refresh() { let cwd = config.cwd(); cwd = cwd.replace(userHome, '~'); self.vorpal.delimiter(cwd + self.chalk.yellow(' MIB $')); }, setVorpal(vorpal) { self.vorpal = vorpal; self.chalk = vorpal.chalk; } } })();