forked from navos/sheepd
📝 docs
This commit is contained in:
parent
a567214f58
commit
164c71ddfe
9 changed files with 36 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue