Compare commits

...
2 Commits
Author SHA1 Message Date
hulthe 679aa4ae65 Cargo.toml: Add authors field 2023-10-05 19:36:42 +02:00
hulthe e9c908e562 Add --version flag 2023-10-05 19:36:33 +02:00
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
name = "filereap"
version = "1.0.0"
edition = "2021"
authors = ["Joakim Hulthe <joakim@hulthe.net>"]
[dependencies]
clap = { version = "4.4.6", features = ["derive"] }
+4
View File
@@ -1,3 +1,6 @@
//! CLI to delete dated files in a directory according to a time period config.
//! Useful for backup directories that accumulate files over time.
mod config;
#[macro_use]
@@ -15,6 +18,7 @@ use std::path::PathBuf;
type FileName = DateTime<FixedOffset>;
#[derive(Parser)]
#[command(version)]
struct Opt {
config: PathBuf,