Add RemoteServer to the taskchampion crate

This commit is contained in:
Dustin J. Mitchell
2020-11-27 19:47:50 -05:00
parent d46f20e75a
commit 2a37f090a5
10 changed files with 322 additions and 29 deletions

View File

@@ -52,8 +52,9 @@ impl CommandInvocation {
}
pub(super) fn get_server(&self) -> Fallible<impl server::Server> {
Ok(server::LocalServer::new(Path::new(
"/tmp/task-sync-server",
))?)
Ok(server::RemoteServer::new(
"http://localhost:8080".into(),
Uuid::parse_str("d5b55cbd-9a82-4860-9a39-41b67893b22f").unwrap(),
))
}
}