Use a context struct
This commit is contained in:
parent
60208331ba
commit
a0d9bfa97b
10 changed files with 134 additions and 45 deletions
11
src/context.rs
Normal file
11
src/context.rs
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue