Class ConfigFile

java.lang.Object
com.alibaba.dashscope.config.ConfigFile

public final class ConfigFile extends Object
Minimal reader for ~/.dashscope/config.toml. Flat subset only: top-level key = value lines with string / integer / float / boolean values; sections and comments are skipped. No TOML dependency is pulled in (design §1).
  • Field Details

  • Method Details

    • load

      public static Map<String,String> load(Path path)
      Parse the file at path; missing file yields an empty map. Malformed lines are skipped (config discovery must never crash client construction).
    • defaultPath

      public static Path defaultPath()
      Config file path: DASHSCOPE_CONFIG env, then the default.