mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-28 07:11:21 +00:00
refactor: applied formatting
This commit is contained in:
parent
ba0548febc
commit
2f16d60a0f
1 changed files with 10 additions and 4 deletions
12
src/main.rs
12
src/main.rs
|
@ -4,12 +4,12 @@ use azure_security_keyvault::prelude::KeyVaultGetSecretsResponse;
|
||||||
use azure_security_keyvault::KeyvaultClient;
|
use azure_security_keyvault::KeyvaultClient;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use futures::stream::StreamExt;
|
use futures::stream::StreamExt;
|
||||||
|
use paris::Logger;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use tokio::sync::Semaphore;
|
use tokio::sync::Semaphore;
|
||||||
use paris::Logger;
|
|
||||||
// use paris::error;
|
// use paris::error;
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
|
@ -159,9 +159,15 @@ async fn main() -> Result<()> {
|
||||||
.context("Failed to create KeyvaultClient")?;
|
.context("Failed to create KeyvaultClient")?;
|
||||||
log.success("Detected credentials.");
|
log.success("Detected credentials.");
|
||||||
|
|
||||||
log.loading(format!("Fetching secrets from Key Vault: <blue>{}</>", opts.vault_name));
|
log.loading(format!(
|
||||||
|
"Fetching secrets from Key Vault: <blue>{}</>",
|
||||||
|
opts.vault_name
|
||||||
|
));
|
||||||
let secrets = fetch_secrets_from_key_vault(&client, opts.filter.as_deref()).await?;
|
let secrets = fetch_secrets_from_key_vault(&client, opts.filter.as_deref()).await?;
|
||||||
log.success(format!("Fetched secrets from Key Vault: <blue>{}</>", opts.vault_name));
|
log.success(format!(
|
||||||
|
"Fetched secrets from Key Vault: <blue>{}</>",
|
||||||
|
opts.vault_name
|
||||||
|
));
|
||||||
|
|
||||||
log.loading(format!("Creating output file: <blue>{}</>", opts.output));
|
log.loading(format!("Creating output file: <blue>{}</>", opts.output));
|
||||||
create_env_file(secrets, &opts.output)?;
|
create_env_file(secrets, &opts.output)?;
|
||||||
|
|
Loading…
Reference in a new issue