summaryrefslogtreecommitdiffstats
path: root/src/runner/runc/run.rs
blob: 2d13330dec0c8d72928dceea94b39f619046e294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::io;

use serde::{Deserialize, Serialize};

use crate::types::*;
#[derive(Debug, Deserialize, Serialize)]
pub struct Error;

impl From<Error> for io::Error {
	fn from(_: Error) -> Self {
		io::Error::new(io::ErrorKind::Other, "Failed to run task")
	}
}

pub fn handle_task(task: TaskRef, task_def: Task) -> Result<(), Error> {
	println!("{}:\n\t{:?}", task, task_def);
	Ok(())
}