mirror of https://github.com/Seich/Beau.git
Fix: Env variables
I am making a couple of small changes to how external environment variables are used. From now own everything comming from the outside, namely the .env file and the params flag are assigned to the '_' variable within the internal environment. This is mostly to namespace things and make it clear where they are coming from.
This commit is contained in:
parent
d2eabfb19e
commit
cc1e46f4f0
|
|
@ -21,7 +21,7 @@ class Base extends Command {
|
|||
const env = dotenv.config().parsed || {};
|
||||
params = dotenv.parse(params.reduce((a, p) => a + '\n' + p, ''));
|
||||
|
||||
const envParams = { params: Object.assign(env, params) };
|
||||
const envParams = { _: Object.assign(env, params) };
|
||||
|
||||
const configFileDir = path.dirname(
|
||||
path.resolve(process.cwd(), configFile)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
const request = require('request-promise-native');
|
||||
const RequestList = require('./requestList');
|
||||
const RequestCache = require('./requestCache');
|
||||
const Plugins = require('./plugins');
|
||||
|
||||
const {
|
||||
httpVerbs,
|
||||
requestRegex,
|
||||
replacementRegex,
|
||||
UpperCaseKeys,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
const Request = require('./request');
|
||||
const RequestCache = require('./requestCache');
|
||||
const httpVerbs = require('./shared').httpVerbs;
|
||||
|
||||
class RequestList {
|
||||
constructor(config = { REQUESTS: [] }) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue