summaryrefslogtreecommitdiffstats
path: root/crates/driver/src/task.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-11-05 21:44:39 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-11-05 21:44:39 +0100
commitd5c51769b28b801e15dcc6779f3c20ea56e49c81 (patch)
treeb08356632ee4cc919cdb6cc765b8933bd5452c8a /crates/driver/src/task.rs
parent1671d0fbf3b5691f2db44883a0973ec858beaf94 (diff)
downloadrebel-d5c51769b28b801e15dcc6779f3c20ea56e49c81.tar
rebel-d5c51769b28b801e15dcc6779f3c20ea56e49c81.zip
driver: add support for specialized tasks
Allow skipping a TaskDef unless it matches specific arg values.
Diffstat (limited to 'crates/driver/src/task.rs')
-rw-r--r--crates/driver/src/task.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/driver/src/task.rs b/crates/driver/src/task.rs
index 8f3c7d6..51557ae 100644
--- a/crates/driver/src/task.rs
+++ b/crates/driver/src/task.rs
@@ -5,7 +5,7 @@ use serde::Deserialize;
use common::{string_hash::StringHash, types::TaskID};
use crate::{
- args::{ArgMapping, ArgType},
+ args::{ArgMapping, ArgType, TaskArgs},
recipe,
};
@@ -87,4 +87,6 @@ pub struct TaskDef {
pub output: HashMap<String, Output>,
#[serde(flatten)]
pub action: Action,
+ #[serde(skip)]
+ pub arg_match: TaskArgs,
}