Skip to content

Commit

Permalink
Merge pull request #8474 from smartcontractkit/fix-config-env-1.12.1
Browse files Browse the repository at this point in the history
core/cmd: fix CL_CONFIG handling
  • Loading branch information
chainchad authored Feb 17, 2023
2 parents b0f37cf + 047798a commit b781c74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ func NewApp(client *Client) *cli.App {
Usage: "optional, applies only in client mode when making remote API calls. If turned on, SSL certificate verification will be disabled. This is mostly useful for people who want to use Chainlink with a self-signed TLS certificate",
},
cli.StringSliceFlag{
Name: "config, c",
Usage: "TOML configuration file(s) via flag, or raw TOML via env var. If used, legacy env vars must not be set. Multiple files can be used (-c configA.toml -c configB.toml), and they are applied in order with duplicated fields overriding any earlier values. If the env var is specified, it is always processed last with the effect of being the final override.",
EnvVar: "CL_CONFIG",
Name: "config, c",
Usage: "TOML configuration file(s) via flag, or raw TOML via env var. If used, legacy env vars must not be set. Multiple files can be used (-c configA.toml -c configB.toml), and they are applied in order with duplicated fields overriding any earlier values. If the `CL_CONFIG` env var is specified, it is always processed last with the effect of being the final override. [$CL_CONFIG]",
// Note: we cannot use the EnvVar field since it will combine with the flags.
},
cli.StringFlag{
Name: "secrets, s",
Usage: "TOML configuration file for secrets. Must be set if and only if config is set.",
},
}
app.Before = func(c *cli.Context) error {
if c.IsSet("config") {
if c.IsSet("config") || v2.EnvConfig != "" {
// TOML
var opts chainlink.GeneralConfigOpts

Expand Down

0 comments on commit b781c74

Please sign in to comment.