Cache channel listings for search
Search keeps each channel's list for an hour, so a repeat needs no network, and uses the old copy with a warning if the registry fails. `--refresh` skips the cache; publish, index, login and logout drop it. A test command no longer writes to stdout, where it could corrupt the test runner's results. Planning: bnbr1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8f202290b9
commit
47a80fad04
9 files changed
+330
-55
No files matched your search
@@ -386,6 +386,7 @@ async fn cmd_login(
|
||||
verify_login(host, plain_http, creds)
|
||||
})
|
||||
save_creds(orbit_root(), host, creds)
|
||||
drop_cached_indexes(orbit_root())
|
||||
println("Login succeeded for \{host}")
|
||||
}
|
||||
|
||||
@@ -395,6 +396,7 @@ async fn cmd_logout(raw_host : String) -> Unit raise OrbitError {
|
||||
if host == "" {
|
||||
raise OrbitError("invalid registry host '\{raw_host}'")
|
||||
}
|
||||
drop_cached_indexes(orbit_root())
|
||||
if remove_creds(orbit_root(), host) {
|
||||
println("Removed credentials for \{host}")
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user