feat: update with web assembly components
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
use apt::AptTask;
|
||||
use plugin_task::PluginTask;
|
||||
|
||||
use super::task::IntoTask;
|
||||
use super::{plugins::PluginStore, task::IntoTask};
|
||||
|
||||
pub struct Plan {}
|
||||
pub mod apt;
|
||||
pub mod plugin_task;
|
||||
|
||||
pub struct Plan {
|
||||
store: PluginStore,
|
||||
}
|
||||
impl Plan {
|
||||
pub fn new() -> Self {
|
||||
Self {}
|
||||
pub fn new(store: PluginStore) -> Self {
|
||||
Self { store }
|
||||
}
|
||||
|
||||
pub async fn tasks(&self) -> anyhow::Result<Vec<impl IntoTask>> {
|
||||
Ok(vec![AptTask::new()])
|
||||
Ok(vec![
|
||||
AptTask::new().into_task(),
|
||||
PluginTask::new("alloy@0.1.0", self.store.clone()).into_task(),
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
pub mod apt;
|
||||
|
Reference in New Issue
Block a user