class

Fluxion::Registry::Settings

Inherits Reference < Object

The configured registries, at ~/.config/fluxion/registries.yaml.

Constructors

load(path : String = Source.settings_path) : self
Source
new(sources : Array(Source) = [] of Source)
Source

Instance methods

add(source : Source) : self
Source
find(name : String) : Source | Nil
Source
remove(name : String) : self
Source
resolve(name : String | Nil = nil) : Source

The registry a command should act on when none was named: the one marked default, or the only one configured.

Source
save(path : String = Source.settings_path) : Nil
Source
set_default(name : String) : self

Not default=: this returns new settings rather than mutating, and an assignment method in Crystal returns its argument, so the result would be unreachable. ameba:disable Naming/AccessorMethodName

Source
sources
Source