refactor: cli don't depend directly on git crate
All checks were successful
Rust / build (push) Successful in 1m10s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

This commit is contained in:
Paul Campbell 2024-07-03 07:35:01 +01:00
parent 007a5bd13c
commit 3dec12de20
4 changed files with 3 additions and 3 deletions

View file

@ -386,7 +386,6 @@ The following diagram shows the dependency between the crates that make up `git-
stateDiagram-v2
cli --> server
cli --> git
file_watcher_actor --> config
file_watcher_actor --> actor_macros

View file

@ -5,7 +5,6 @@ edition = { workspace = true }
[dependencies]
git-next-server = { workspace = true }
git-next-git = { workspace = true }
# CLI parsing
clap = { workspace = true }

View file

@ -29,7 +29,7 @@ enum Server {
fn main() {
let fs = fs::new(PathBuf::default());
let net = Network::new_real();
let repo = git_next_git::repository::real();
let repo = git_next_server::repo();
let commands = Commands::parse();
match commands.command {

View file

@ -8,6 +8,8 @@ use std::path::PathBuf;
use tracing::{error, info};
use tracing_subscriber::EnvFilter;
pub use git_next_git::repository::real as repo;
pub fn init(fs: FileSystem) {
let file_name = "git-next-server.toml";
let pathbuf = PathBuf::from(file_name);