use endpoint::execute::ExecuteError;

use std::io;

pub fn execute_version<R>(respond: R) -> Result<(), ExecuteError>
    where R: for<'a> FnOnce(&'a [u8]) -> io::Result<()> {
    let version = env!("CARGO_PKG_VERSION");
    respond(version.as_bytes())?;
    Ok(())
}
