nu-command 0.112.1

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
use nu_protocol::{ShellError, shell_error::generic::GenericError};

pub(crate) fn map_arboard_err_to_shell(err: arboard::Error) -> ShellError {
    ShellError::Generic(GenericError::new_internal(
        "Clipboard error",
        err.to_string(),
    ))
}