execute_cli_bin2hex

Function execute_cli_bin2hex 

Source
pub fn execute_cli_bin2hex<FRead>(
    args: Bin2HexArgs,
    read_data: FRead,
) -> Result<Option<Vec<u8>>>
where FRead: Fn(&Path) -> Result<Vec<u8>>,
Expand description

Executes bin2hex CLI command logic.

Returns Ok(Some(bytes)) if stdout output should be emitted, or Ok(None) if output was written to a destination file.