exclude_newer in puffin-dev resolve-cli (#684)

Internal dev tool change.
This commit is contained in:
konsti 2023-12-18 15:06:54 +01:00 committed by GitHub
parent 7926749296
commit 89ca0d68b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -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 }

View file

@ -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<DateTime<Utc>>,
}
pub(crate) async fn resolve_cli(args: ResolveCliArgs) -> Result<()> {