WIP: cli: ???
This commit is contained in:
parent
2851059fd6
commit
0796af1485
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,9 @@ use std::path::PathBuf;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use kxio::{fs, network::Network};
|
use kxio::{fs, network::Network};
|
||||||
|
|
||||||
|
/// How long to wait between rechecking the status of a repo.
|
||||||
|
const SLEEP_DURATION: std::time::Duration = std::time::Duration::from_secs(10);
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[clap(version = clap::crate_version!(), author = clap::crate_authors!(), about = clap::crate_description!())]
|
#[clap(version = clap::crate_version!(), author = clap::crate_authors!(), about = clap::crate_description!())]
|
||||||
struct Commands {
|
struct Commands {
|
||||||
|
@ -42,7 +45,7 @@ async fn main() {
|
||||||
git_next_server::init(fs);
|
git_next_server::init(fs);
|
||||||
}
|
}
|
||||||
Server::Start => {
|
Server::Start => {
|
||||||
git_next_server::start(fs, net, repo).await;
|
git_next_server::start(fs, net, repo, SLEEP_DURATION).await;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue