diff --git a/Cargo.lock b/Cargo.lock index 889708949..5bb1b2214 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2401,6 +2401,7 @@ version = "0.0.1" dependencies = [ "anstream", "anyhow", + "chrono", "clap", "colored", "distribution-filename", diff --git a/crates/puffin-dev/Cargo.toml b/crates/puffin-dev/Cargo.toml index 0a5b0d313..3f3d8c5e0 100644 --- a/crates/puffin-dev/Cargo.toml +++ b/crates/puffin-dev/Cargo.toml @@ -32,6 +32,7 @@ puffin-traits = { path = "../puffin-traits" } anstream = { workspace = true } anyhow = { workspace = true } +chrono = { workspace = true } clap = { workspace = true, features = ["derive"] } colored = { workspace = true } fs-err = { workspace = true } diff --git a/crates/puffin-dev/src/resolve_cli.rs b/crates/puffin-dev/src/resolve_cli.rs index fa2fc9652..003860b35 100644 --- a/crates/puffin-dev/src/resolve_cli.rs +++ b/crates/puffin-dev/src/resolve_cli.rs @@ -3,6 +3,7 @@ use std::path::PathBuf; use anstream::println; use anyhow::{Context, Result}; +use chrono::{DateTime, Utc}; use clap::{Parser, ValueEnum}; use fs_err as fs; use fs_err::File; @@ -40,6 +41,8 @@ pub(crate) struct ResolveCliArgs { format: ResolveCliFormat, #[command(flatten)] cache_args: CacheArgs, + #[arg(long)] + exclude_newer: Option>, } pub(crate) async fn resolve_cli(args: ResolveCliArgs) -> Result<()> {