Class ConfigLoader
java.lang.Object
cloud.kitelang.cli.config.ConfigLoader
Loads and saves Kite CLI configuration from ~/.kite/config.yml
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathGet the config directory path (~/.kite)static PathGet the config file path (~/.kite/config.yml)static StringGet a specific config value by key path (e.g., "defaults.environment")list()List all config keys and values.static KiteConfigload()Load configuration, using cached version if available.static KiteConfigreload()Force reload configuration from file.static voidsave(KiteConfig config) Save configuration to file.static voidSet a specific config value by key path.
-
Constructor Details
-
ConfigLoader
public ConfigLoader()
-
-
Method Details
-
configDir
Get the config directory path (~/.kite) -
configFile
Get the config file path (~/.kite/config.yml) -
load
Load configuration, using cached version if available. -
reload
Force reload configuration from file. -
save
Save configuration to file.- Throws:
IOException
-
get
-
set
Set a specific config value by key path.- Throws:
IOException
-
list
-