From bc4fb74239b37c98bdf2dcd85c69c8ec05b91088 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 10 Jul 2025 14:03:33 -0600 Subject: refactor: pass api client to repository ctor --- src/bin/cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bin') diff --git a/src/bin/cli.rs b/src/bin/cli.rs index c6c741a2..0751ed05 100644 --- a/src/bin/cli.rs +++ b/src/bin/cli.rs @@ -1,4 +1,5 @@ use authzd::EntitiesRepository; +use authzd::gitlab::Api; use clap::{Parser, Subcommand}; #[derive(Parser, Debug)] @@ -50,7 +51,7 @@ async fn main() -> Result<(), Box> { token, host, } => { - let repository = EntitiesRepository::new(token, host); + let repository = EntitiesRepository::new(Api::new(token, host)); let entities = repository.all(project).await?; let json = serde_json::to_string_pretty(&entities)?; std::fs::write(output, json)?; -- cgit v1.2.3