cargo-checkmate 0.1.18

checkmate checks all the things - comprehensive out-of-the-box safety & hygiene checks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::executable::Executable;

const README: &str = include_str!("../README.md");

#[derive(Debug, PartialEq, Eq, clap::Parser)]
/// Display the project README.md
pub struct Readme {}

impl Executable for Readme {
    fn execute(&self) -> anyhow::Result<()> {
        use std::io::Write;

        std::io::stdout().write_all(README.as_bytes())?;
        Ok(())
    }
}