1package soy.iko.opencode.data.model
3import androidx.compose.runtime.Immutable
6 * A saved opencode server connection. The [password] for HTTP Basic auth is resolved
7 * separately from EncryptedSharedPreferences and is null when not loaded/needed.
10data class ServerProfile(
14 val username: String? = null,
15 val password: String? = null,
16 val lastUsed: Long = 0,
18 val hasAuth: Boolean get() = !username.isNullOrBlank()
20 val displayLabel: String get() = label.takeIf { it.isNotBlank() } ?: baseUrl
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list