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
|
stateDiagram-v2
|
||||||
|
|
||||||
cli --> server
|
cli --> server
|
||||||
cli --> git
|
|
||||||
|
|
||||||
file_watcher_actor --> config
|
file_watcher_actor --> config
|
||||||
file_watcher_actor --> actor_macros
|
file_watcher_actor --> actor_macros
|
||||||
|
|
|
@ -5,7 +5,6 @@ edition = { workspace = true }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
git-next-server = { workspace = true }
|
git-next-server = { workspace = true }
|
||||||
git-next-git = { workspace = true }
|
|
||||||
|
|
||||||
# CLI parsing
|
# CLI parsing
|
||||||
clap = { workspace = true }
|
clap = { workspace = true }
|
||||||
|
|
|
@ -29,7 +29,7 @@ enum Server {
|
||||||
fn main() {
|
fn main() {
|
||||||
let fs = fs::new(PathBuf::default());
|
let fs = fs::new(PathBuf::default());
|
||||||
let net = Network::new_real();
|
let net = Network::new_real();
|
||||||
let repo = git_next_git::repository::real();
|
let repo = git_next_server::repo();
|
||||||
let commands = Commands::parse();
|
let commands = Commands::parse();
|
||||||
|
|
||||||
match commands.command {
|
match commands.command {
|
||||||
|
|
|
@ -8,6 +8,8 @@ use std::path::PathBuf;
|
||||||
use tracing::{error, info};
|
use tracing::{error, info};
|
||||||
use tracing_subscriber::EnvFilter;
|
use tracing_subscriber::EnvFilter;
|
||||||
|
|
||||||
|
pub use git_next_git::repository::real as repo;
|
||||||
|
|
||||||
pub fn init(fs: FileSystem) {
|
pub fn init(fs: FileSystem) {
|
||||||
let file_name = "git-next-server.toml";
|
let file_name = "git-next-server.toml";
|
||||||
let pathbuf = PathBuf::from(file_name);
|
let pathbuf = PathBuf::from(file_name);
|
||||||
|
|
Loading…
Reference in a new issue