cuddle-please-misc 0.1.0

A release-please inspired release manager tool, built on top of cuddle, but also useful standalone, cuddle-please supports, your ci of choice, as well as gitea, github
Documentation
pub trait Ui {
    fn write_str(&self, content: &str);
    fn write_err_str(&self, content: &str);

    fn write_str_ln(&self, content: &str);
    fn write_err_str_ln(&self, content: &str);
}

pub type DynUi = Box<dyn Ui + Send + Sync>;

impl Default for DynUi {
    fn default() -> Self {
        Box::<ConsoleUi>::default()
    }
}

#[derive(Default)]
pub struct ConsoleUi {}

#[allow(dead_code)]
impl ConsoleUi {
    pub fn new() -> Self {
        Self::default()
    }
}

impl From<ConsoleUi> for DynUi {
    fn from(value: ConsoleUi) -> Self {
        Box::new(value)
    }
}

impl Ui for ConsoleUi {
    fn write_str(&self, content: &str) {
        print!("{}", content)
    }

    fn write_err_str(&self, content: &str) {
        eprint!("{}", content)
    }

    fn write_str_ln(&self, content: &str) {
        println!("{}", content)
    }

    fn write_err_str_ln(&self, content: &str) {
        eprintln!("{}", content)
    }
}