From 23e93564ca7de185aacab4c494312d8b732922dd Mon Sep 17 00:00:00 2001 From: tilpner Date: Fri, 29 May 2020 11:36:29 +0200 Subject: atom: add option to only include open issues --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 196e587..e544da1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,9 @@ enum OptMode { Atom { repo: String, out_path: PathBuf, - labels: Vec + labels: Vec, + #[structopt(long)] + only_open: bool } } @@ -127,9 +129,9 @@ fn main() -> Result<()> { tx.commit().await?; Ok(()) }, - OptMode::Atom { repo, out_path, labels } => { + OptMode::Atom { repo, out_path, labels, only_open } => { let repo = parse_repo(&repo)?; - atom::generate(&mut *pool.acquire().await?, repo, out_path, labels).await + atom::generate(&mut *pool.acquire().await?, repo, out_path, labels, only_open).await .context("Failed to generate Atom feed")?; Ok(()) } -- cgit v1.2.3