feat(nextcloud): add deck_client to FullCtx
This commit is contained in:
parent
3e544baccf
commit
4d20ee4a9f
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,7 @@ pub const NAME: &str = "trello-to-deck";
|
||||||
|
|
||||||
pub use kxio::kxeprintln as e;
|
pub use kxio::kxeprintln as e;
|
||||||
pub use kxio::kxprintln as p;
|
pub use kxio::kxprintln as p;
|
||||||
|
use nextcloud::DeckClient;
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[clap(version = clap::crate_version!(), author = clap::crate_authors!(), about = clap::crate_description!())]
|
#[clap(version = clap::crate_version!(), author = clap::crate_authors!(), about = clap::crate_description!())]
|
||||||
|
@ -58,6 +59,11 @@ pub struct FullCtx {
|
||||||
pub prt: Printer,
|
pub prt: Printer,
|
||||||
pub cfg: AppConfig,
|
pub cfg: AppConfig,
|
||||||
}
|
}
|
||||||
|
impl FullCtx {
|
||||||
|
pub fn deck_client(&self) -> DeckClient {
|
||||||
|
DeckClient::new(self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg_attr(test, mutants::skip)]
|
#[cfg_attr(test, mutants::skip)]
|
||||||
pub async fn run(ctx: Ctx) -> color_eyre::Result<()> {
|
pub async fn run(ctx: Ctx) -> color_eyre::Result<()> {
|
||||||
|
|
Loading…
Reference in a new issue