core/protocol: split commands into separate files
All checks were successful
Build and test / check (push) Successful in 2m8s
Build and test / build (push) Successful in 3m3s
Build and test / check-license (push) Successful in 4m58s
Build and test / test (push) Successful in 3m47s
Build and test / docs (push) Successful in 5m47s

This commit is contained in:
2025-11-26 02:41:28 +09:00
parent c9815fe7de
commit 805c2d11ff
28 changed files with 1058 additions and 898 deletions

View File

@@ -70,7 +70,7 @@ pub async fn create_users(
.interact()?
{
let password = read_password_from_stdin_with_double_check(username)?;
let message = Request::PasswdUser(username.to_owned(), password);
let message = Request::PasswdUser((username.to_owned(), password));
if let Err(err) = server_connection.send(message).await {
server_connection.close().await.ok();
@@ -78,7 +78,7 @@ pub async fn create_users(
}
match server_connection.next().await {
Some(Ok(Response::PasswdUser(result))) => {
Some(Ok(Response::SetUserPassword(result))) => {
print_set_password_output_status(&result, username)
}
response => return erroneous_server_response(response),