Class McEnv

java.lang.Object
ai.mindconnect.common.util.McEnv

public final class McEnv extends Object
Loads the repository's mc.env file — plain docker-style KEY=VALUE lines, no quoting or escaping (values are taken verbatim after the first =), # starts a comment. The file is looked up in the working directory and then upwards, so the demos find it no matter whether they run from the repo root or the module directory. Process environment variables win over file entries.
  • Method Details

    • get

      public static String get(String key, String fallback)
      The value for key: process env first, then mc.env, else fallback.