Is it possible to pass multiple toml config files in ballerina?

657 Views Asked by At

As of now in the ballerina; I have seen most of the sample listed in the document has a single toml file for the configuration. Is it possible to pass multiple toml files?

If it is possible; It will be very useful to deal with multiple connectors and store the values in different files.

1

There are 1 best solutions below

0
On BEST ANSWER

No, it is not possible to specify multiple files with the --config flag at the moment. Please open a GitHub issue and open a discussion.

The Ballerina Config API looks up values from sources in the following order.

  1. command-line parameters
  2. environment variables
  3. configuration file

You can extend the config API by integrating with your own configuration store as well.