Function cli_clipboard::get_contents
source · Expand description
Get the current clipboard contents
Example
cli_clipboard::set_contents("testing".to_owned()).unwrap();
assert_eq!(cli_clipboard::get_contents().unwrap(), "testing");
Get the current clipboard contents
cli_clipboard::set_contents("testing".to_owned()).unwrap();
assert_eq!(cli_clipboard::get_contents().unwrap(), "testing");