From ecf43aac41e27f6546858cd98a152ac761a9afb6 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 10 Jul 2025 13:13:16 -0600 Subject: refactor: rename generate to all --- src/authorization/entities.rs | 2 +- src/bin/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authorization/entities.rs b/src/authorization/entities.rs index 8c3f7955..4824fdd8 100644 --- a/src/authorization/entities.rs +++ b/src/authorization/entities.rs @@ -75,7 +75,7 @@ impl EntitiesRepository { } } - pub async fn generate(&self) -> Result, Box> { + pub async fn all(&self) -> Result, Box> { let client = reqwest::Client::new(); let mut entities = Vec::new(); let mut processed_groups = HashSet::new(); diff --git a/src/bin/cli.rs b/src/bin/cli.rs index d0bbe989..fbd07d35 100644 --- a/src/bin/cli.rs +++ b/src/bin/cli.rs @@ -51,7 +51,7 @@ async fn main() -> Result<(), Box> { host, } => { let repository = EntitiesRepository::new(token, host, project); - let entities = repository.generate().await?; + let entities = repository.all().await?; let json = serde_json::to_string_pretty(&entities)?; std::fs::write(output, json)?; } -- cgit v1.2.3