2023-11-25 23:09:49 +01:00
|
|
|
pub mod cli;
|
|
|
|
pub use cli::*;
|
2023-11-25 21:41:17 +01:00
|
|
|
|
2024-01-28 20:44:12 +01:00
|
|
|
pub mod leptos_service;
|
2023-12-26 17:20:31 +01:00
|
|
|
pub mod node_service;
|
2023-12-29 17:18:02 +01:00
|
|
|
pub mod rust_lib;
|
2023-11-25 23:14:38 +01:00
|
|
|
pub mod rust_service;
|
2024-01-28 19:20:38 +01:00
|
|
|
|
2024-01-28 20:44:12 +01:00
|
|
|
pub mod cuddle_file;
|
2024-03-30 22:33:25 +01:00
|
|
|
pub mod rust_workspace {
|
|
|
|
use serde::Deserialize;
|
|
|
|
|
|
|
|
#[derive(Deserialize, Clone, Debug)]
|
|
|
|
pub struct Workspace {
|
|
|
|
pub members: Vec<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Deserialize, Clone, Debug)]
|
|
|
|
pub struct File {
|
|
|
|
pub workspace: Option<Workspace>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl File {
|
|
|
|
pub async fn read_file() -> eyre::Result<Option<Self>> {
|
|
|
|
let file = match tokio::fs::read_to_string("Cargo.toml").await {
|
|
|
|
Ok(file) => file,
|
|
|
|
Err(e) => {
|
|
|
|
tracing::warn!("Cargo.toml was not found: {}", e);
|
|
|
|
return Ok(None);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
let workspace_file: File = toml::from_str(&file)?;
|
|
|
|
|
|
|
|
Ok(Some(workspace_file))
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn get_workspace_members(&self) -> Option<Vec<String>> {
|
|
|
|
self.workspace.as_ref().map(|w| w.members.clone())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-01-28 20:44:12 +01:00
|
|
|
pub mod cuddle_please;
|
|
|
|
pub mod cuddle_releaser;
|
2024-01-28 21:06:16 +01:00
|
|
|
pub mod cuddle_x;
|
2024-01-28 20:44:12 +01:00
|
|
|
pub mod dagger_middleware;
|
2024-03-30 02:26:08 +01:00
|
|
|
pub mod drone_templater;
|