Class ProfileManager

Assembly: tsak.dll

Manages connection profiles stored as YAML files in ~/.tsak/profiles/.

public sealed class ProfileManager

Inheritance

Object→ProfileManager

Methods

Delete(string)

Deletes a profile.

public bool Delete(string name)

GetActiveName()

Gets the name of the active profile.

public string? GetActiveName()

List()

Lists all saved profiles.

public IReadOnlyList<ConnectionProfile> List()

Load(string)

Loads a profile by name.

public ConnectionProfile? Load(string name)

Resolve(string?, string?, string?)

Resolves the effective connection settings.

public ConnectionProfile? Resolve(string? profileName, string? url, string? apiKey)

Save(ConnectionProfile)

Saves a profile to disk.

public void Save(ConnectionProfile profile)

SetActive(string)

Sets the active profile.

public void SetActive(string name)

Constructors

ProfileManager()

Initializes the profile manager with the default base directory (~/.tsak/).

ProfileManager(string)

Initializes the profile manager with a custom base directory (for testing).