Add global lints.
This commit is contained in:
parent
cb3b3e465e
commit
9e208ed39e
|
@ -1,7 +1,10 @@
|
||||||
|
//! The CLI definitions.
|
||||||
|
|
||||||
pub use {crate::cli::run::run, clap::Parser};
|
pub use {crate::cli::run::run, clap::Parser};
|
||||||
|
|
||||||
mod run;
|
mod run;
|
||||||
|
|
||||||
|
/// The main CLI command.
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[command(about, author, version)]
|
#[command(about, author, version)]
|
||||||
pub struct Cli {}
|
pub struct Cli {}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
//! The CLI logic.
|
||||||
|
|
||||||
use super::{Cli, Parser};
|
use super::{Cli, Parser};
|
||||||
|
|
||||||
|
/// Parse the CLI arguments and execute them.
|
||||||
pub fn run() {
|
pub fn run() {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
dbg!(cli);
|
dbg!(cli);
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
//! # Bautils
|
||||||
|
//!
|
||||||
|
//! > **Bauke's Ad-hoc Utilities.**
|
||||||
|
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
#![warn(missing_docs, clippy::missing_docs_in_private_items)]
|
||||||
|
|
||||||
mod cli;
|
mod cli;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in New Issue