chore: refactor client under infrastructure

This commit is contained in:
Jon Seager 2025-11-26 10:59:31 +00:00
parent 8aca3b92b7
commit 0119027e1a
No known key found for this signature in database
10 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ use anyhow::Result;
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use crate::client::BrewlogClient;
use super::BrewlogClient;
use crate::domain::ids::{TokenId, UserId};
pub struct TokensClient<'a> {

View file

@ -1,3 +1,4 @@
pub mod auth;
pub mod client;
pub mod database;
pub mod repositories;

View file

@ -1,5 +1,4 @@
pub mod application;
pub mod client;
pub mod domain;
pub mod infrastructure;
pub mod presentation;

View file

@ -1,6 +1,6 @@
use anyhow::Result;
use brewlog::application::{ServerConfig, serve};
use brewlog::client::BrewlogClient;
use brewlog::infrastructure::client::BrewlogClient;
use brewlog::presentation::cli::{Cli, Commands, ServeCommand, roasters, roasts, tokens};
use clap::Parser;
use tracing_subscriber::{EnvFilter, fmt, prelude::*};

View file

@ -3,9 +3,9 @@ use clap::Args;
use serde_json::json;
use super::print_json;
use crate::client::BrewlogClient;
use crate::domain::ids::RoasterId;
use crate::domain::roasters::{NewRoaster, UpdateRoaster};
use crate::infrastructure::client::BrewlogClient;
#[derive(Debug, Args)]
pub struct AddRoasterCommand {

View file

@ -3,9 +3,9 @@ use clap::Args;
use serde_json::json;
use super::print_json;
use crate::client::BrewlogClient;
use crate::domain::ids::{RoastId, RoasterId};
use crate::domain::roasts::NewRoast;
use crate::infrastructure::client::BrewlogClient;
#[derive(Debug, Args)]
pub struct AddRoastCommand {

View file

@ -3,8 +3,8 @@ use clap::Args;
use std::io::{self, Write};
use super::print_json;
use crate::client::BrewlogClient;
use crate::domain::ids::TokenId;
use crate::infrastructure::client::BrewlogClient;
#[derive(Debug, Args)]
pub struct CreateTokenCommand {