MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / refresh_status_row

Function refresh_status_row

crates/openshell-cli/src/run.rs:5402–5416  ·  view source on GitHub ↗
(status: &ProviderCredentialRefreshStatus)

Source from the content-addressed store, hash-verified

5400}
5401
5402fn refresh_status_row(status: &ProviderCredentialRefreshStatus) -> String {
5403 let strategy = ProviderCredentialRefreshStrategy::try_from(status.strategy)
5404 .unwrap_or(ProviderCredentialRefreshStrategy::Unspecified);
5405 format!(
5406 "{:<24} {:<28} {:<28} {:<18} {:<20} {:<20} {:<20} {}",
5407 status.provider_name,
5408 status.credential_key,
5409 provider_refresh_strategy_name(strategy),
5410 status.status,
5411 format_optional_epoch_ms(status.expires_at_ms),
5412 format_optional_epoch_ms(status.next_refresh_at_ms),
5413 format_optional_epoch_ms(status.last_refresh_at_ms),
5414 truncate_status_field(&status.last_error, 72),
5415 )
5416}
5417
5418fn format_optional_epoch_ms(ms: i64) -> String {
5419 if ms > 0 {

Calls

no outgoing calls