Skip to content

Commit

Permalink
Allow LODESTAR_PRESET env var (#3307)
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored Oct 4, 2021
1 parent 924c38d commit c3a1e18
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/src/options/globalOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface IGlobalSingleArgs {
rootDir: string;
network: NetworkName;
paramsFile: string;
preset: string;
}

export const defaultNetwork: NetworkName = "mainnet";
Expand All @@ -27,6 +28,12 @@ const globalSingleOptions: ICliCommandOptions<IGlobalSingleArgs> = {
description: "Network configuration file",
type: "string",
},

// hidden option to allow for LODESTAR_PRESET to be set
preset: {
hidden: true,
type: "string",
},
};

export const rcConfigOption: [string, string, (configPath: string) => Record<string, unknown>] = [
Expand Down

0 comments on commit c3a1e18

Please sign in to comment.