1
0
Fork 0
forked from navos/sheepd

cli + user api

This commit is contained in:
JMARyA 2025-05-02 12:53:28 +02:00
parent 46cf2f4572
commit b010027549
12 changed files with 504 additions and 25 deletions

View file

@ -8,14 +8,7 @@ use crate::{
};
use super::args::JoinCommand;
fn domain(host: &str) -> String {
if host.starts_with("http") {
return host.to_string();
} else {
format!("https://{host}")
}
}
use crate::api::domain;
/// Join a herd as client
pub fn join(conf: JoinCommand) {