From 9e208ed39e9eb9a1f10c8d8d6c7ff57768907e72 Mon Sep 17 00:00:00 2001 From: Bauke Date: Tue, 31 Oct 2023 16:58:35 +0100 Subject: [PATCH] Add global lints. --- source/cli/mod.rs | 3 +++ source/cli/run.rs | 3 +++ source/main.rs | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/source/cli/mod.rs b/source/cli/mod.rs index da69d1f..a719797 100644 --- a/source/cli/mod.rs +++ b/source/cli/mod.rs @@ -1,7 +1,10 @@ +//! The CLI definitions. + pub use {crate::cli::run::run, clap::Parser}; mod run; +/// The main CLI command. #[derive(Debug, Parser)] #[command(about, author, version)] pub struct Cli {} diff --git a/source/cli/run.rs b/source/cli/run.rs index fff7361..b92a41d 100644 --- a/source/cli/run.rs +++ b/source/cli/run.rs @@ -1,5 +1,8 @@ +//! The CLI logic. + use super::{Cli, Parser}; +/// Parse the CLI arguments and execute them. pub fn run() { let cli = Cli::parse(); dbg!(cli); diff --git a/source/main.rs b/source/main.rs index cd64bbb..5956483 100644 --- a/source/main.rs +++ b/source/main.rs @@ -1,3 +1,10 @@ +//! # Bautils +//! +//! > **Bauke's Ad-hoc Utilities.** + +#![forbid(unsafe_code)] +#![warn(missing_docs, clippy::missing_docs_in_private_items)] + mod cli; fn main() {