gitlab-cli
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -23,4 +23,12 @@ #!/usr/bin/env node | ||
var config = require('../config/' + env); | ||
var aliases = require('../config/aliases'); | ||
// aliases file might not exist | ||
try { | ||
var aliases = require('../config/aliases'); | ||
} | ||
catch (error) { | ||
var aliases = {}; | ||
} | ||
// create gitlab client | ||
@@ -27,0 +35,0 @@ var client = gitlab.create({ |
var projects = []; | ||
var users = []; | ||
var fs = require('fs'); | ||
var aliases = require('../config/aliases') || {}; | ||
// aliases file might not exist | ||
try { | ||
var aliases = require('../config/aliases'); | ||
} | ||
catch (error) { | ||
var aliases = {}; | ||
} | ||
// dependencies | ||
@@ -7,0 +14,0 @@ var client = null; |
{ | ||
"name": "gitlab-cli", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Gitlab API on the command line", | ||
@@ -5,0 +5,0 @@ "main": "./bin/cli.js", |
Sorry, the diff of this file is not supported yet
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
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
56354
601