Record Class KiteConfig
java.lang.Object
java.lang.Record
cloud.kitelang.cli.config.KiteConfig
public record KiteConfig(KiteConfig.Defaults defaults, int verbosity, Map<String, KiteConfig.ProviderConfig> providers)
extends Record
Global configuration for Kite CLI.
Loaded from ~/.kite/config.yml
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDefault settings for commands.static final recordProvider-specific configuration (credentials, regions, etc.) -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKiteConfig(KiteConfig.Defaults defaults, int verbosity, Map<String, KiteConfig.ProviderConfig> providers) Creates an instance of aKiteConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Returns the value of thedefaultsrecord component.static KiteConfigempty()Default values when no config exists.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Get a provider-specific config.Returns the value of theprovidersrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theverbosityrecord component.
-
Field Details
-
CONFIG_DIR
- See Also:
-
CONFIG_FILE
- See Also:
-
-
Constructor Details
-
KiteConfig
public KiteConfig(KiteConfig.Defaults defaults, int verbosity, Map<String, KiteConfig.ProviderConfig> providers) Creates an instance of aKiteConfigrecord class.- Parameters:
defaults- the value for thedefaultsrecord componentverbosity- the value for theverbosityrecord componentproviders- the value for theprovidersrecord component
-
-
Method Details
-
empty
Default values when no config exists. -
provider
Get a provider-specific config. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
defaults
Returns the value of thedefaultsrecord component.- Returns:
- the value of the
defaultsrecord component
-
verbosity
public int verbosity()Returns the value of theverbosityrecord component.- Returns:
- the value of the
verbosityrecord component
-
providers
Returns the value of theprovidersrecord component.- Returns:
- the value of the
providersrecord component
-