| 193 | } |
| 194 | |
| 195 | std::optional<RemoteSessionFile> RemoteSessionManager::first_api() const { |
| 196 | for (const auto &i : sessions_) { |
| 197 | if (i.host() == "localhost") |
| 198 | return i; |
| 199 | } |
| 200 | |
| 201 | return {}; |
| 202 | } |
| 203 | |
| 204 | std::optional<RemoteSessionFile> |
| 205 | RemoteSessionManager::find(const std::string &session_name) const { |