Comparing version 0.1.1 to 0.1.2
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
console.log(' $ '.cyan + 'toka -v'); | ||
console.log(' $ '.cyan + 'toka .gitignore <LAUNGUAGE NAME>'); | ||
console.log(' $ '.cyan + 'toka .gitignore <LAUNGUAGE NAME>'); // Use -d to create a default .gitignore file | ||
console.log(' $ '.cyan + 'toka .bowerrc <COMPONENT DIR>'); | ||
@@ -11,0 +11,0 @@ console.log(' $ '.cyan + 'toka license <LICENSE NAME>'); |
@@ -18,2 +18,3 @@ var fs = require('fs'); | ||
module.exports = function (language) { | ||
if (language == '-d') language = 'Default'; | ||
var check = require('./helper').checkInArray(langs, language); | ||
@@ -47,3 +48,3 @@ if (!check || !language) { | ||
var raw = 'https://raw.githubusercontent.com/github/gitignore/master/' + langs[result.number] + '.gitignore'; | ||
var raw = 'https://raw.githubusercontent.com/0x142857/gitignore/master/' + langs[result.number] + '.gitignore'; | ||
request(raw, function (error, response, body) { | ||
@@ -60,3 +61,3 @@ if (!error && response.statusCode == 200) { | ||
} else if(check) { | ||
var raw = 'https://raw.githubusercontent.com/github/gitignore/master/' + language + '.gitignore'; | ||
var raw = 'https://raw.githubusercontent.com/0x142857/gitignore/master/' + language + '.gitignore'; | ||
request(raw, function (error, response, body) { | ||
@@ -63,0 +64,0 @@ if (!error && response.statusCode == 200) { |
@@ -25,2 +25,3 @@ var langs = [ | ||
'Dart', | ||
'Default', | ||
'Delphi', | ||
@@ -70,2 +71,3 @@ 'Drupal', | ||
'OCaml', | ||
'OSX', | ||
'Objective-C', | ||
@@ -112,2 +114,3 @@ 'Opa', | ||
'Waf', | ||
'Windows', | ||
'WordPress', | ||
@@ -114,0 +117,0 @@ 'Xojo', |
{ | ||
"name": "toka", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A handy tool to generate common files in command line", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/0x142857/gen.git" | ||
"url": "https://github.com/0x142857/toka.git" | ||
}, | ||
@@ -18,0 +18,0 @@ "preferGlobal": true, |
Sorry, the diff of this file is not supported yet
59465
277