Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated complete dep and updated try/catch

  • Loading branch information...
commit c98aaa62e275afb5e0b0836ff7e5574e3f82f0a4 1 parent b6dc1dc
Dav Glass davglass authored
Showing with 6 additions and 3 deletions.
  1. +5 −2 bin/yogi.js
  2. +1 −1  package.json
7 bin/yogi.js
View
@@ -7,8 +7,9 @@ http://yuilibrary.com/license/
*/
var args = require('../lib/args');
+var log = require('../lib/log');
-if (!('TRAVIS' in process.env)) {
+try {
var complete = require('complete');
@@ -43,9 +44,11 @@ if (!('TRAVIS' in process.env)) {
complete(comp);
+} catch (e) {
+ log.debug('Failed to setup tab-completion module');
+ console.log(e);
}
-var log = require('../lib/log');
var config = require('../lib/config');
var which = require('which');
var spawn = require('win-spawn');
2  package.json
View
@@ -36,7 +36,7 @@
"win-spawn": "*",
"which": "*",
"ansispan": "~0.0.4",
- "complete": "0.4.2",
+ "complete": ">=0.4.3",
"promises-aplus-tests": "*"
},
"scripts": {
Please sign in to comment.
Something went wrong with that request. Please try again.