mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
fix(cli): Check env for configDirectory.
This commit is contained in:
parent
4c7897c9af
commit
f8964cac1a
@ -30,8 +30,9 @@ async function startUp({ context, options = {}, command }) {
|
||||
context.command = command.name();
|
||||
context.commandLineOptions = options;
|
||||
context.print = createPrint();
|
||||
|
||||
context.configDirectory = path.resolve(options.configDirectory || process.cwd());
|
||||
context.configDirectory = path.resolve(
|
||||
options.configDirectory || process.env.LOWDEFY_DIRECTORY_CONFIG || process.cwd()
|
||||
);
|
||||
const { cliConfig, lowdefyVersion, plugins } = await getLowdefyYaml(context);
|
||||
context.cliConfig = cliConfig;
|
||||
context.lowdefyVersion = lowdefyVersion;
|
||||
|
Loading…
x
Reference in New Issue
Block a user