Skip to main content

probe_key_command

Function probe_key_command 

Source
pub async fn probe_key_command(argv: &[String]) -> Result<(), KeyCommandError>
Expand description

Run one entry’s api_key_command and discard the credential.

For doctor, whose contract is “what will actually run here”: it has to really invoke the helper, because a helper that no longer authenticates is precisely what api_key_command exists to make visible. Returning () rather than the key is what makes printing it impossible at the call site, instead of a rule the reporting code has to remember.