feat: move client into a client file
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
d35f5c8f22
commit
5780d55587
@ -3,20 +3,8 @@ use std::net::SocketAddr;
|
|||||||
|
|
||||||
use crate::services::flux_local_cluster::extensions::FluxLocalClusterManagerExt;
|
use crate::services::flux_local_cluster::extensions::FluxLocalClusterManagerExt;
|
||||||
|
|
||||||
|
pub mod client;
|
||||||
pub mod server;
|
pub mod server;
|
||||||
pub mod client {
|
|
||||||
use crate::app::{LocalApp, SharedLocalApp};
|
|
||||||
|
|
||||||
pub async fn get_local_app(registry: impl Into<String>) -> anyhow::Result<SharedLocalApp> {
|
|
||||||
tracing_subscriber::fmt::init();
|
|
||||||
|
|
||||||
tracing::debug!("Starting client commit");
|
|
||||||
|
|
||||||
let app = SharedLocalApp::new(LocalApp::new(registry).await?);
|
|
||||||
|
|
||||||
Ok(app)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[command(author, version, about, long_about = None, subcommand_required = true)]
|
#[command(author, version, about, long_about = None, subcommand_required = true)]
|
||||||
|
11
crates/flux-releaser/src/cli/client.rs
Normal file
11
crates/flux-releaser/src/cli/client.rs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
use crate::app::{LocalApp, SharedLocalApp};
|
||||||
|
|
||||||
|
pub async fn get_local_app(registry: impl Into<String>) -> anyhow::Result<SharedLocalApp> {
|
||||||
|
tracing_subscriber::fmt::init();
|
||||||
|
|
||||||
|
tracing::debug!("Starting client commit");
|
||||||
|
|
||||||
|
let app = SharedLocalApp::new(LocalApp::new(registry).await?);
|
||||||
|
|
||||||
|
Ok(app)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user