From db4c638182d1c6b15bdc8d94f7baa691197e9a56 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 29 Oct 2023 13:08:37 -0700 Subject: split runner into local/remote logic ideally `trait Runner` describes whatever should have behavioral differences when a task is run locally vs in conjunction with a remote server. then everything consuming a `dyn Runner` will not need to change. if i've done it right. --- ci-lib-core/src/protocol.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ci-lib-core/src') diff --git a/ci-lib-core/src/protocol.rs b/ci-lib-core/src/protocol.rs index c7a9318..c987c89 100644 --- a/ci-lib-core/src/protocol.rs +++ b/ci-lib-core/src/protocol.rs @@ -15,7 +15,7 @@ pub enum ClientProto { Pong, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Clone)] #[serde(tag = "command_info")] #[serde(rename_all = "snake_case")] pub enum CommandInfo { @@ -23,7 +23,7 @@ pub enum CommandInfo { Finished { exit_code: Option, id: u32 }, } -#[derive(Serialize, Deserialize, Debug)] +#[derive(Serialize, Deserialize, Debug, Clone)] #[serde(tag = "task_info")] #[serde(rename_all = "snake_case")] pub enum TaskInfo { -- cgit v1.1