class

Yt::Config

Inherits YAML::Serializable < Reference < Object

Constructors

new(active_profile : String = "default", profiles : Hash(String, ProfileConfig) = Hash(String, ProfileConfig).new)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Class methods

config_dir
Source
config_file
Source
load
Source

Instance methods

active_profile
Source
active_profile=(active_profile : String)
Source
active_profile_name
Source
current_profile
Source
delete_profile(name : String) : Bool
Source
list_profiles
Source
profiles
Source
profiles=(profiles : Hash(String, ProfileConfig))
Source
rename_profile(old_name : String, new_name : String) : Bool
Source
save
Source
set_profile(name : String, profile : ProfileConfig) : Nil
Source
use_profile(name : String) : Bool
Source