Class ConfigLoader

java.lang.Object
cloud.kitelang.cli.config.ConfigLoader

public class ConfigLoader extends Object
Loads and saves Kite CLI configuration from ~/.kite/config.yml
  • Constructor Details

    • ConfigLoader

      public ConfigLoader()
  • Method Details

    • configDir

      public static Path configDir()
      Get the config directory path (~/.kite)
    • configFile

      public static Path configFile()
      Get the config file path (~/.kite/config.yml)
    • load

      public static KiteConfig load()
      Load configuration, using cached version if available.
    • reload

      public static KiteConfig reload()
      Force reload configuration from file.
    • save

      public static void save(KiteConfig config) throws IOException
      Save configuration to file.
      Throws:
      IOException
    • get

      public static String get(String key)
      Get a specific config value by key path (e.g., "defaults.environment")
    • set

      public static void set(String key, String value) throws IOException
      Set a specific config value by key path.
      Throws:
      IOException
    • list

      public static Map<String,String> list()
      List all config keys and values.