Namespace: config

Classes

Functions

load

load(filename?): Config

Load the project’s YML or JSON config. The config location will be searched starting from the caller file’s directory going up towards the root directory. If no filename is given the default .qs-project.yml will be searched.

Parameters

Name Type Default value Description
filename string '.qs-project.yml' Optional config filename override

Returns

Config


requireEnv

requireEnv(variable): string

Get a required environment variable. Throws an error if not found.

Parameters

Name Type
variable string

Returns

string