solar-core 1.0.5

Core library for cargo-solar command.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::ValueEnum;
use serde::{Deserialize, Serialize};

#[derive(ValueEnum, Clone, Serialize, Eq, Deserialize, PartialEq, Debug, Copy)]
pub enum Ruleset {
    ConventionalCommits,
}

impl Ruleset {
    pub fn get(&self) -> &str {
        match self {
            Self::ConventionalCommits => "conventional-commits",
        }
    }
}