Comparing version 0.4.0 to 0.4.1
module.exports = { | ||
input: 'grey', | ||
action: 'cyan', | ||
action: 'grey', | ||
success: 'green', | ||
warn: 'yellow', | ||
warning: 'yellow', | ||
error: 'red' | ||
// silly: 'rainbow', | ||
// verbose: 'cyan', | ||
// prompt: 'grey', | ||
// info: 'green', | ||
// data: 'grey', | ||
// help: 'cyan', | ||
// debug: 'blue', | ||
// error: 'red' | ||
}; |
@@ -7,3 +7,3 @@ var path = require('path'); | ||
var nodegitOptions = require('../nodegitoptions'); | ||
var npmInstall = require('./npminstall'); | ||
var npmCommand = require('./npm'); | ||
@@ -34,4 +34,3 @@ var modulesDir = 'modules'; | ||
console.log('cox has successfully run the task install'.success); | ||
console.log('starting NPM Install'.action); | ||
npmInstall(); | ||
npmCommand('install'); | ||
}); | ||
@@ -38,0 +37,0 @@ }); |
var path = require('path'); | ||
var colors = require('colors'); | ||
var parseArgs = require('minimist'); | ||
require('colors').setTheme(require('./colors-theme')); | ||
var command; | ||
colors.setTheme(require('./colors-theme')); | ||
var args = parseArgs(process.argv.slice(2)); | ||
var commandName = args._[0]; | ||
var command; | ||
try{ | ||
command = require( path.join(__dirname, 'commands', process.argv[2]) ); | ||
command = require( path.join(__dirname, 'commands', commandName ) ); | ||
} catch(ex){ | ||
console.error(('Error: there is no command ' + process.argv[2] + ' in cox').error); | ||
console.error(('Error: there is no command ' + commandName + ' in cox').error); | ||
process.exit(1); | ||
} | ||
command(args); | ||
command(process.argv); | ||
@@ -8,3 +8,4 @@ var NodeGit = require('nodegit'); | ||
credentials: function(url, userName) { | ||
return NodeGit.Cred.sshKeyFromAgent(userName); | ||
var creds = NodeGit.Cred.sshKeyFromAgent(userName); | ||
return creds; | ||
} | ||
@@ -11,0 +12,0 @@ } |
{ | ||
"name": "cox", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"preferGlobal": "true", | ||
@@ -5,0 +5,0 @@ "description": "git commander for multi-repositories", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
5267
131