UNPKG

titan-cli

Version:

Command Line Interface for TitanJS Scaffolding

23 lines (20 loc) 677 B
var titan = function(args) { console.log("Binpath has been resolved as: " + args[1]); //noinspection JSUnresolvedFunction, JSUnresolvedVariable var fs = require('fs'), path = require('path'), st = args[2], binPath = path.join(path.dirname(args[1]), '..'); switch (st) { case 'views': var vn = args[3]; //noinspection JSUnresolvedFunction (require('../src/views'))(vn, binPath); break; default: console.log("'" + st + "' is not a valid symbol type or is not by TitanJS"); break; } }; //noinspection JSUnresolvedVariable module.exports = titan;