diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-10 14:03:33 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-10 14:03:33 -0600 |
| commit | bc4fb74239b37c98bdf2dcd85c69c8ec05b91088 (patch) | |
| tree | 7b2a7f064f9b35bf592b79194b341f5fe58332fb /src/bin | |
| parent | 8e297ae732660b8174703af67b574d64145bd7dc (diff) | |
refactor: pass api client to repository ctor
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/cli.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<dyn std::error::Error>> { 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)?; |
