pub fn try_copy_aur_ssh_public_key_from_status_lines(
status_lines: &[String],
) -> Option<Result<(), String>>Expand description
What: Copy the first OpenSSH public key line from setup status lines to the clipboard.
Inputs:
status_lines: Modal status lines that may include a line starting withssh-.
Output:
Nonewhen no public key line is present.Some(Ok(()))whenwl-copyorxclipaccepted the key text.Some(Err(message))when a key line exists but clipboard copy failed.
Details:
- Delegates to
crate::util::clipboard::copy_plain_text_to_clipboard(no PKGBUILD suffix).