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

Function credential_expiry_value_error

crates/openshell-cli/src/run.rs:4061–4066  ·  view source on GitHub ↗
(key: Option<&str>, detail: &str)

Source from the content-addressed store, hash-verified

4059}
4060
4061fn credential_expiry_value_error(key: Option<&str>, detail: &str) -> miette::Report {
4062 key.map_or_else(
4063 || miette::miette!("--credential-expires-at value {detail}"),
4064 |key| miette::miette!("--credential-expires-at value for '{key}' {detail}"),
4065 )
4066}
4067
4068fn parse_credential_expiry_value(value: &str, key: Option<&str>) -> Result<i64> {
4069 let value = value.trim();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected