refactor: cli don't depend directly on git crate
This commit is contained in:
parent
007a5bd13c
commit
3dec12de20
4 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -5,7 +5,6 @@ edition = { workspace = true }
|
|||
|
||||
[dependencies]
|
||||
git-next-server = { workspace = true }
|
||||
git-next-git = { workspace = true }
|
||||
|
||||
# CLI parsing
|
||||
clap = { workspace = true }
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue