summaryrefslogtreecommitdiffstats
path: root/src/runner/runc/run.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/runner/runc/run.rs')
-rw-r--r--src/runner/runc/run.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/runner/runc/run.rs b/src/runner/runc/run.rs
new file mode 100644
index 0000000..2d13330
--- /dev/null
+++ b/src/runner/runc/run.rs
@@ -0,0 +1,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(())
+}