1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

add haze scripts

fixes #27
This commit is contained in:
Robin Appelman 2026-08-17 17:54:27 +02:00
commit 125b68e08a
7 changed files with 207 additions and 9 deletions

View file

@ -4,7 +4,7 @@ use miette::{Context, IntoDiagnostic, Result};
use std::borrow::Cow;
use tokio::fs::{create_dir_all, write};
#[derive(Debug)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Mapping<'a> {
source_type: MappingSourceType,
pub source: Cow<'a, Utf8Path>,
@ -244,7 +244,7 @@ pub fn for_config<'a>(config: &'a HazeConfig) -> impl Iterator<Item = Mapping<'a
.chain(default_mappings())
}
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum MappingSourceType {
Sources,
WorkDir,
@ -252,7 +252,7 @@ pub enum MappingSourceType {
Absolute,
}
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum MappingType {
Folder,
File,