Skip to main content

try_copy_aur_ssh_public_key_from_status_lines

Function try_copy_aur_ssh_public_key_from_status_lines 

Source
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 with ssh-.

Output:

  • None when no public key line is present.
  • Some(Ok(())) when wl-copy or xclip accepted 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).