akashacms-cli
Advanced tools
Comparing version 0.4.3 to 0.4.4
40
cli.js
@@ -33,10 +33,21 @@ #!/usr/bin/env node | ||
var fnakasha; | ||
try { | ||
fnakasha = resolve('akashacms', { basedir: process.cwd() }); | ||
} catch (ex) { | ||
console.error("Could not find AkashaCMS because: "+ ex); | ||
process.exit(); | ||
var loadAkasha = function() { | ||
var fnakasha; | ||
if (process.env.AKASHAPATH) { | ||
fnakasha = process.env.AKASHAPATH; | ||
} else { | ||
try { | ||
fnakasha = resolve('akashacms', { basedir: process.cwd() }); | ||
} catch (ex) { | ||
console.error("Could not find AkashaCMS because: "+ ex); | ||
console.error(""); | ||
console.error("If you're seeing this message, akashacms hasn't been"); | ||
console.error("installed locally. You may need to type 'npm install'. "); | ||
console.error(""); | ||
console.error("See http://akashacms.com for more help"); | ||
process.exit(); | ||
} | ||
} | ||
return require(fnakasha); | ||
} | ||
var akasha = require(fnakasha); | ||
@@ -95,2 +106,3 @@ 'use strict'; | ||
.action(function() { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -107,2 +119,3 @@ akasha.config(config); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -137,2 +150,3 @@ akasha.config(config); | ||
.action(function(url) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -150,2 +164,3 @@ akasha.config(config); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -167,2 +182,3 @@ akasha.config(config); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -180,2 +196,3 @@ akasha.config(config); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -193,2 +210,3 @@ akasha.config(config); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -206,2 +224,3 @@ akasha.config(config); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -220,2 +239,3 @@ akasha.config(config); | ||
.action(function(options) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -249,2 +269,3 @@ akasha.config(config); | ||
.action(function() { | ||
var akasha = loadAkasha(); | ||
// var staticSrv = require('node-static'); | ||
@@ -266,2 +287,3 @@ var config = require(path.join(process.cwd(), '/config.js')); | ||
.action(function() { | ||
var akasha = loadAkasha(); | ||
// var staticSrv = require('node-static'); | ||
@@ -277,2 +299,3 @@ var config = require(path.join(process.cwd(), '/config.js')); | ||
.action(function(fileName) { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -297,2 +320,3 @@ akasha.config(config); | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -315,2 +339,3 @@ akasha.config(config); | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -333,2 +358,3 @@ akasha.config(config); | ||
.action(function() { | ||
var akasha = loadAkasha(); | ||
var config = require(path.join(process.cwd(), '/config.js')); | ||
@@ -335,0 +361,0 @@ akasha.config(config); |
@@ -32,3 +32,3 @@ { | ||
}, | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"engines": { | ||
@@ -35,0 +35,0 @@ "node": ">=0.10.1" |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
25558
351
22