1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use khonsu_tools::{
    universal::{
        anyhow,
        clap::Parser,
        code_coverage::{self},
        DefaultConfig,
    },
    Commands,
};

fn main() -> anyhow::Result<()> {
    Commands::parse().execute::<Config>()
}

struct Config;

impl khonsu_tools::Config for Config {
    type Publish = Self;
    type Universal = Self;
}

impl khonsu_tools::universal::Config for Config {
    type Audit = DefaultConfig;
    type CodeCoverage = Self;
}

impl code_coverage::Config for Config {
    fn ignore_paths() -> Vec<String> {
        vec![String::from("actionable/examples/*")]
    }
}

impl khonsu_tools::publish::Config for Config {
    fn paths() -> Vec<String> {
        vec![
            String::from("actionable-macros"),
            String::from("actionable"),
        ]
    }
}