sitegen
#!/usr/bin/env node
'use strict';
/**
* Module dependencies.
*/
var program = require('commander');
var fs = require('fs');
var file = process.argv[2];
var newFile = process.argv[3];
var options = { encoding: 'utf8' };
var path = require('path');
var lib = require('./index');
program
.version(require('./package').version)
.option('-d, --deletegen', 'Deletes files in generated')
.option('-ab, --template-source', 'Generates template file with source')
.option('-g, --gen', 'Makes the file with template and source')
.parse(process.argv);
if (program.gen) {
lib.generator(function() {});
console.log('You have generated files');
}
if (program.deletegen) {
lib.fileShreader(function(){});
console.log('You have deleted files!');
}