1
0
Fork 0
forked from navos/sheepd

📝 docs

This commit is contained in:
JMARyA 2025-04-30 10:02:04 +02:00
parent a567214f58
commit 164c71ddfe
9 changed files with 36 additions and 2 deletions

View file

@ -17,6 +17,7 @@ fn domain(host: &str) -> String {
}
}
/// Join a herd as client
pub fn join(conf: JoinCommand) {
// TODO : check for root
// TODO : check if joined somewhere already
@ -34,7 +35,6 @@ pub fn join(conf: JoinCommand) {
};
let url = format!("{}/join", domain(&conf.home));
println!("{url}");
let mut res = ureq::post(url)
.send_json(&api::JoinParams {
join_token: None,