Comparing version 0.2.6 to 0.2.7
#!/usr/bin/env node | ||
require('colorful').toxic() | ||
require('colorful').toxic(); | ||
if (!process.argv[2]) { | ||
@@ -12,10 +10,6 @@ console.log('toka ~ ' + require('../package').version.green); | ||
console.log(' $ '.cyan + 'toka license <LICENSE NAME>'); | ||
return; | ||
process.exit(); | ||
} | ||
var gen = require('..'); | ||
var argv = require('minimist')(process.argv.slice(2), { | ||
'--': true | ||
}); | ||
gen(argv); | ||
var argv = require('minimist')(process.argv.slice(2), { '--': true }); | ||
gen(argv); |
@@ -8,7 +8,10 @@ var gitignore = require('./gitignore'), | ||
exports.search = function (options) { | ||
if (options.v || options.version) { | ||
console.log('toka ~ ' + require('../package').version.green); | ||
return; | ||
} | ||
var filename = options._[0]; | ||
switch (filename) { | ||
case '-v': | ||
console.log('toka ~ ' + require('../package').version.green); | ||
break; | ||
case 'g': | ||
@@ -15,0 +18,0 @@ case 'git': |
@@ -15,3 +15,4 @@ var fs = require('fs'); | ||
'MPL-2.0', | ||
'WTF' | ||
'WTF', | ||
'SOX' | ||
]; | ||
@@ -18,0 +19,0 @@ |
{ | ||
"name": "toka", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "A handy tool to generate common files in command line", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ ## Toka | ||
[![NPM download](https://img.shields.io/npm/dm/toka.svg?style=flat-square)](https://www.npmjs.com/package/toka) | ||
[![David Status](https://img.shields.io/david/aprilorange/toka.svg?style=flat-square)](https://david-dm.org/aprilorange/toka) | ||
[![David Status](https://img.shields.io/david/egoist/toka.svg?style=flat-square)](https://david-dm.org/egoist/toka) | ||
@@ -30,2 +30,3 @@ ### A handy tool to generate common files in command line | ||
- -a/--append : append to an existing file | ||
- -g/--global : save to ~/.gitignore_global | ||
@@ -32,0 +33,0 @@ webpack only: |
121979
147
77
362