Use a context struct

This commit is contained in:
Marc Plano-Lesay 2024-11-06 09:09:48 +11:00
parent 60208331ba
commit a0d9bfa97b
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
10 changed files with 134 additions and 45 deletions

11
src/context.rs Normal file
View file

@ -0,0 +1,11 @@
use bon::Builder;
use crate::Client;
#[readonly::make]
#[derive(Builder)]
pub struct Context {
pub client: Client,
pub dry_run: bool,
pub no_confirm: bool,
}