pub fn run_revoke_api_key_command(
config_path: &Path,
key_to_revoke: &str,
) -> Result<(), Box<dyn Error>>Expand description
Revoke an API key from configuration file.
Removes the specified key hash or key ID from the configuration file. The configuration file format and comments are preserved.
ยงErrors
Returns an error if:
- The configuration file cannot be read or written
- The specified key is not found
- The configuration file format is invalid