Comparing version 0.4.2 to 0.4.3
@@ -147,3 +147,41 @@ #!/usr/bin/env node | ||
const default_dot_env = ` | ||
# AST | ||
asthostname=localhost | ||
astoutsuffix=__sty__ | ||
astcallprotocol=http | ||
astcallmethod=/stylize | ||
astmetaportnum=8999 | ||
astusemetasvr=true | ||
astdebug=false | ||
astsavemeta=true | ||
astcleanname=true | ||
astappendmodelid=false | ||
echocmd=false | ||
devmode=false | ||
astmetaoutputdir=.astmeta | ||
res1=1500 | ||
icdirbase=/a/albums/creations | ||
webdir=/kwww/html/astia/albums | ||
`; | ||
//if no .env, create one using default_dot_env | ||
try { | ||
if (!fs.existsSync('.env')) { | ||
fs.writeFileSync('.env', default_dot_env); | ||
console.log(".env file created with default values"); | ||
} | ||
} | ||
catch (error) { | ||
console.log("Error creating .env file"); | ||
} | ||
try { | ||
//console.log("Do we have a dot env ??"); | ||
@@ -150,0 +188,0 @@ var tst = require('dotenv').config() |
@@ -86,4 +86,5 @@ #!/usr/bin/env node | ||
const envListHelp = ` | ||
vi ~/.bash_env | ||
export asthostname="orko.guillaumeisabelle.com" | ||
vi ~/.bash_env or vi .env | ||
#export asthostname="orko.guillaumeisabelle.com" | ||
asthostname=localhost | ||
export astoutsuffix="__stylized__" | ||
@@ -95,5 +96,36 @@ #export astportbase=90 #DEPRECATED, use full port ex. 9001,7860 | ||
`; | ||
const default_dot_env = ` | ||
# AST | ||
asthostname=localhost | ||
astoutsuffix=__sty__ | ||
astcallprotocol=http | ||
astcallmethod=/stylize | ||
astmetaportnum=8999 | ||
astusemetasvr=true | ||
astdebug=false | ||
astsavemeta=true | ||
astcleanname=true | ||
astappendmodelid=false | ||
echocmd=false | ||
devmode=false | ||
astmetaoutputdir=.astmeta | ||
res1=1500 | ||
`; | ||
//if no .env, create one using default_dot_env | ||
try { | ||
if (!fs.existsSync('.env')) { | ||
fs.writeFileSync('.env', default_dot_env); | ||
console.log(".env file created with default values"); | ||
} | ||
} | ||
catch (error) { | ||
console.log("Error creating .env file"); | ||
} | ||
try { | ||
var tst = require('dotenv').config() | ||
@@ -100,0 +132,0 @@ if (tst.parsed) { |
{ | ||
"name": "gia-ast", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "A CLI Wrapping AST Web API calls to servers", | ||
@@ -15,5 +15,3 @@ "main": "index.js", | ||
"gia-ast": "gia-ast.js", | ||
"gia-ast-meta": "gia-ast-meta.js", | ||
"gia-astv1": "gia-astv1.js", | ||
"gia-ast2": "gia-ast3.js" | ||
"gia-ast-meta": "gia-ast-meta.js" | ||
}, | ||
@@ -20,0 +18,0 @@ "repository": { |
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
1692959
7859